/in/foo.c: In function 'sub_ncount':
/in/foo.c:12:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
printf("func sub_ncount() mystr == NULL || sub == NULL || ncount == NULL", -1);
^~~~~~
/in/foo.c:12:9: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:12:9: note: include '<stdio.h>' or provide a declaration of 'printf'
/in/foo.c:12:16: warning: too many arguments for format [-Wformat-extra-args]
printf("func sub_ncount() mystr == NULL || sub == NULL || ncount == NULL", -1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c: In function 'main':
/in/foo.c:35:2: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
gets(buf);
^~~~
/in/foo.c:41:5: warning: incompatible implicit declaration of built-in function 'printf'
printf("%d\n", count);
^~~~~~
/in/foo.c:41:5: note: include '<stdio.h>' or provide a declaration of 'printf'
/tmp/ccihkawF.o: In function `main':
foo.c:(.text.startup+0x1c): warning: the `gets' function is dangerous and should not be used.