解决编译过程中的strcpy/malloc/strlen incompatible警告

使用strcpy/malloc/strlen出现如下警告的时候

warning: incompatible implicit declaration of built-in function ‘strcpy’
可以通过在源文件中加入如下头文件解决

#include <string.h>

你可能感兴趣的:(function)