1.使用memset、memcpy等函数需要包含string.h而不是strings.h
2.error: format not a string literal and no format arguments
printf(buf); //liunx下编译上述代码时出现编译报错。 //解决方法: 将printf(buf) 改为: printf("%s",buf)
本文转自cococo点点博客园博客,原文链接:http://www.cnblogs.com/coder2012/archive/2013/03/31/2991877.html,如需转载请自行联系原作者