?
=?iso-8859-9?B?RGlu52F5IEFr5/ZyZW4=?=
When I execute the following code
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
FILE *bmp;
bmp = fopen("deneme.bmp","w");
fputc(10,bmp);
fputc(9,bmp);
fputc(15,bmp);
fputc(16,bmp);
fclose(bmp);
system("PAUSE");
return 0;
}
the content of the deneme.bmp will be the
0D 0A 09 0F 10
in hex.
There is a problem writing 10. Why does this happen? Same problem
occurs in 11 and 12 also.
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
FILE *bmp;
bmp = fopen("deneme.bmp","w");
fputc(10,bmp);
fputc(9,bmp);
fputc(15,bmp);
fputc(16,bmp);
fclose(bmp);
system("PAUSE");
return 0;
}
the content of the deneme.bmp will be the
0D 0A 09 0F 10
in hex.
There is a problem writing 10. Why does this happen? Same problem
occurs in 11 and 12 also.