C超短程序编译出问题:missed prototype
Cixy 2004-08-25 10:22:09 程序如下:
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char *argv[])
{
char c[4];
strset (c,'\0');
c[0] = 'C';
printf("%s\n", c);
return 0;
}
编译错误如下:
"test.c", line 8: Error: The function "strset" must have a prototype.
1 Error(s) detected.
注明:偶是用CC(Sun的一个编译器)编译的
哪位大侠说说这个prototype到底是个啥玩意儿,如何解决啊?!
在线等2小时^_^