#include <stdlib.h>\r
#include <stdio.h>\r
+#include <stdint.h>\r
+\r
int main(int argc, char* argv[])\r
{\r
FILE* fp;\r
- long nImgSize;\r
+ uint32_t nImgSize;\r
char* pHeader1 = "CSYS";\r
- long nHeader2 = 0x80500000;\r
+ uint32_t nHeader2 = 0x80500000;\r
\r
if (argc != 3)\r
{\r
if (fp != NULL)\r
{\r
fwrite(pHeader1, sizeof(char), 4, fp);\r
- fwrite(&nHeader2, sizeof(long), 1, fp);\r
- fwrite(&nImgSize, sizeof(long), 1, fp);\r
+ fwrite(&nHeader2, sizeof(nHeader2), 1, fp);\r
+ fwrite(&nImgSize, sizeof(nImgSize), 1, fp);\r
fclose(fp);\r
}\r
else\r