void main() {
unsigned _int64 dbFileSize = 99;
unsigned _int64 fileSize = 100;
char buf[128];
memset(buf, 0x00, 128);
sprintf(buf, "\nOD DB File Size = %d bytes \t XML file size = %d bytes", fileSize, dbFileSize);
printf("The string is %s ", buf);
The string is
OD DB File Size = 100 bytes XML file size = 0 bytes
原文由 venkysmarty 发布,翻译遵循 CC BY-SA 4.0 许可协议