Philip S Tellis forced the electrons to say:
> The problem is that that does not happen. I am trying to read the header
> of a bitmap. This is 14 bytes long. The correct way to use fread is to
The only solution I can suggest is:
make the char Type[2]; to be a pointer instead of an array. ie, char *Type.
Allocate 2 bytes for it via malloc(3).
Since sizeof (pointer) is 4 bytes, this might work - I don't know, you can
tell me the results. And I think if this works, it might be portable as
well.
Binand
--
#include <stdio.h> | Binand Raj S.
char *p = "#include <stdio.h>%cchar *p = %c%s%c; | This is a self-
int main(){printf(p,10,34,p,34,10);return 0;}%c"; | printing program.
int main(){printf(p,10,34,p,34,10);return 0;} | Try it!!
To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list
button and fill the appropriate information
and submit. For any other queries contact the ML maintener