hello. i need some help with BMP images.
i declared 3 structures
now i try to open the file and read from itCode:struct bmp_fileheader {...} struct bmp_infoheader {....} struct bmp_bitmap { int blue; int green; int red; };
unfortuantely i receive "segmentation fault". why?Code:FILE *captcha =fopen("captcha.bmp", "rt"); struct bmp_fileheader info; //i named my struct "info" fread(&info, 14, 1, captcha);