prog.c: In function ‘isvalidname’:
prog.c:12:3: error: ‘NULL’ undeclared (first use in this function)
NULL};
^
prog.c:12:3: note: each undeclared identifier is reported only once for each function it appears in
prog.c:13:5: warning: implicit declaration of function ‘removespace’ [-Wimplicit-function-declaration]
if( removespace(rname) && rname[0] < 0 &&
^
prog.c:14:2: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
strlen(rname) >= 4 &&
^
prog.c:14:2: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
prog.c:15:2: warning: implicit declaration of function ‘HaveRejectStr’ [-Wimplicit-function-declaration]
!HaveRejectStr(rname, rejectstr) &&
^
prog.c:16:2: warning: implicit declaration of function ‘strncmp’ [-Wimplicit-function-declaration]
strncmp(rname, "小", 2) != 0 && //起頭是「小」
^
prog.c:20:2: warning: return from incompatible pointer type [enabled by default]
return NULL;
^
prog.c: At top level:
prog.c:2:1: warning: ‘isvalidname’ defined but not used [-Wunused-function]
isvalidname(char *rname)
^