error is: extractMessage.c:9:31: error: expected ;, , or ) before . token
my code is here:
my code is here:
#include "bmp.h" void extractMessage(BMPfile picture.bmp, char* msg) { unsigned char temp; int width = getWidth(picture.bmp); int height = getHeight(picture.bmp); printf("The image has %d x %d pixels\n", width, height); for (int y ; y < height ; y++) { for (int x ; x < width ; x++) { pixel p = getPixel(bmpfile, x, y); /* read pixel */ temp =p.green&0x08; p.green = temp<<1; putPixel(bmpfile, p, x, y); /* write modified pixel */ } } }