not 100% sure how im meant to read the image file and verify the first two cahracters are 'B' and 'M'
using this struct:
The first two characters 'B' and 'M' indicate that this is a BMP file and their presence must be verified before any further analysis takes place.,Code:typedef struct { unsigned char fileMarker1; /* 'B' */ unsigned char fileMarker2; /* 'M' */ unsigned int bfSize; unsigned short unused1; unsigned short unused2; unsigned int imageDataOffset; /* Offset to the start of image data */ }FILEHEADER;
any little advice for this would be very helpful
Igor



1Likes
LinkBack URL
About LinkBacks




I remember thinking, "I wonder why they are teaching us C?" - Answer: You'll need it to program microprocessors (first in assembly language, but then in C). You'll want to be good at programming them, because they will be in most projects (does anyone use the 555 any more?). So my advice is to get good at C and keep practising. 