prog.c: In function 'main':
prog.c:11:9: warning: too many arguments for format [-Wformat-extra-args]
printf("Enter char to search in file:\n> ",file); // Как здесь задать вывод имени файла file, заданного на две строчки выше?
^
prog.c:14:14: warning: passing argument 1 of 'fgets' makes pointer from integer without a cast [-Wint-conversion]
while(fgets(z,1,file)){
^
In file included from prog.c:1:0:
/usr/include/stdio.h:622:14: note: expected 'char * restrict' but argument is of type 'char'
extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
^
prog.c:15:7: warning: implicit declaration of function 'strsrt' [-Wimplicit-function-declaration]
if (strsrt(x,z)) count++;
^
prog.c:7:6: warning: unused variable 'intz' [-Wunused-variable]
int intz;
^
prog.c:14:8: warning: 'z' may be used uninitialized in this function [-Wmaybe-uninitialized]
while(fgets(z,1,file)){
^
prog.c:18:2: warning: 'count' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("\nEntered char counted %d times.\n",count);
^
/home/vhWLlC/ccsHP7ZK.o: In function `main':
prog.c:(.text.startup+0x6a): undefined reference to `strsrt'
collect2: error: ld returned 1 exit status