FILE* f = NULL;
fclose(f);
Terminates with: 'No source available for "fclose@@GLIBC_2.1() " '
FILE* f = NULL;
ftell(f);
Terminates with: 'No source available for "ftell()"'
Why those functions does not return error value but terminate whole program? How can I safely tell if file is opened in C and close it???
If variable of type 'FILE*' is passed to my function I need to know the state of the file and be able to close.
Any idea?