G'day!
It's a pretty aesthetic warning flag, but I don't like it.
holiday.c:39:37: warning: format specifies type 'char *' but the argument has
type 'FILE *' (aka 'struct __sFILE *') [-Wformat]
printf("Error opening file %s\n", fp);
~~ ^~
This is a copy from the gcc output. Is there a % something for printing a file name, where fp is declared as
FILE *fp;
and opened as:
fp=fopen(argv[1],"r");
from a command line input.
I had trouble finding any literature about it through, but not overly thorough google search.
Thanks! :)