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)
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点点 创作,采用 知识共享 署名-非商业性使用-相同方式共享 3.0 中国大陆 许可协议进行许可。欢迎转载,请注明出处:
转载自:cococo点点 http://www.cnblogs.com/coder2012