is the check50 report for my code :
jharvard@appliance (~/Dropbox/pset5/bmp): check50 2014/x/pset5/resize bmp.h resize.c :) resize.c and bmp.h exist :) resize.c compiles :( doesn't resize 1x1-pixel BMP when n is 1 :( resizes 1x1-pixel BMP to 2x2 correctly when n is 2 :( resizes 1x1-pixel BMP to 3x3 correctly when n is 3 :) resizes 1x1-pixel BMP to 4x4 correctly when n is 4 :( resizes 1x1-pixel BMP to 5x5 correctly when n is 5 :) resizes 2x2-pixel BMP to 4x4 correctly when n is 2
Strangely, check50 displays a frown despite saying that images have been resized correctly. I thought there might be something wrong with my padding. So I ran a test on
small.bmp to see if my output was being padded correctly for images where no. of scanline bytes were indivisible by 4 :
./resize 5 small.bmp enlarged.bmp xxd -c 48 -g 3 -s 54 enlarged.bmp
000000 at the beginning of every other line is the padding and hence removes any doubts about it.
Here is my code : http://pastebin.com/kFuM2eMU
Please tell me what is going wrong!