I need to read a .PBM image in binary (p4) for my school project.
I tried something like this:
for (int i = 0; i < img->height; i++) { for (i