When I use
peek student.bmp staff.bmp, it shows that the info header and the file header are being updated correctly.
But If I use
diff student.bmp staff.bmp
Binary files student.bmp and staff.bmp differ
If I run my code
./resize 44 small.bmp student.bmp, small.bmp get resized but everything gets messed up.