incompatible implicit declaration of built-in function ‘strlen’

缺少必要的头文件,初始化内存中的数据,但是没有指定memset这个函数来自于哪里。

需要在文件头加入 #include <string.h>或#include<stdlib.h>

猜你喜欢

转载自blog.csdn.net/u012542095/article/details/44656307