if(fp == NULL)
{
printf("Can't find the bmp file!\n");
exit(EXIT_FAILURE);
}
else
{
printf("Successful in open bmp file!\n");
}
exit(EXIT_SUCCESS);
}
complie command:
gcc -o read_bmp read_bmp.c
The informations are fellows:
read_bmp.c: In function `main':
read_bmp.c:26: warning: return type of `main' is not `int'
/tmp/ccocbUMk.o(.text+0x3: In function `main':
: undefined reference to `pm_openw'
collect2: ld returned 1 exit status