摘要: 最近 ubuntu/debian 正在讨论 sprintf/snprintf 的问题,我在这描述一遍。sprintf 的原型为:int sprintf(char *restrict s, const char *restrict format, ...);其中 char* restrict s 的含义为通过s 指向的内存空间不得与其他指针参数指向的内存的空间重叠。比如如下的语句就是错误的用法, 因... 阅读全文
posted @ 2008-12-28 22:52 LI Daobing 阅读(884) 评论(0) 推荐(0) 编辑