Никак не могу избавиться от предупреждений. #include <stdio.h> #include <string.h> int main (int argc, char **argv) { printf ("%s\n", basename ((const char *) (argv [0]))); return 0; } gcc -Wall -o foo foo.c foo.c:5: warning: implicit declaration of function `basename' foo.c:5: warning: format argument is not a pointer (arg 2)