hey all
what does this message mean:
passing `int' to argument 1 of `fputs(const char *, FILE *)' lacks a cast
777
hey all
what does this message mean:
passing `int' to argument 1 of `fputs(const char *, FILE *)' lacks a cast
777
It means that your passing the function an integer argument (of type int) when it expects a pointer to a constant character (a string).
Code:FILE* pFile = fopen("filename.txt","wt"); // fputs(5,pFile); This will give you the error fputs("5",pFile); // This is fine
Muhammad Haggag