我有以下c代码:
#include<stdio.h>
int main(void)
{
char buff[10];
memset(buff,0,sizeof(buff));
gets(buff);
printf("\n The buffer entered is [%s]\n",buff);
return 0;
}
当我运行代码时,我收到以下警告:
warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
我该如何解决这个问题?
由于