mirror of
https://github.com/bitbank2/image_to_c.git
synced 2025-11-04 14:49:59 +08:00
Added file size to output comments
This commit is contained in:
parent
adfb3f7153
commit
3d981b7b3f
2
main.c
2
main.c
@ -657,7 +657,7 @@ int main(int argc, char *argv[])
|
||||
ImageInfo(ihandle, iSize, szInfo); // get image info
|
||||
p = (unsigned char *)malloc(0x10000); // allocate 64k to play with
|
||||
GetLeafName(argv[1], szLeaf);
|
||||
printf("//\n// %s\n//\n", szLeaf); // comment header with filename
|
||||
printf("//\n// %s\n// Data size = %d bytes\n//\n", szLeaf, iSize); // comment header with filename
|
||||
if (szInfo[0])
|
||||
printf("%s", szInfo);
|
||||
FixName(szLeaf); // remove unusable characters
|
||||
|
||||
Loading…
Reference in New Issue
Block a user