I want to remove the warning that i get on this line of the code,
FILE *fil;
char *imp;
(...)
fprintf(fil,imp);
the thing is when i do thi
While technically there's nothing wrong with calling a printf-like function with a string, it is still bad practice because the string may contain format tokens like %s. If imp is %s test for example, bad things will happen.
If you just want to print the imp without formatting, you should use fputs(imp, fil) (note the reversed arguments).