warning: fopen() call [duplicate]
问题 This question already has answers here : Why am i getting this warning in “if (fd=fopen(fileName,”r“) == NULL)”? (6 answers) Closed last year . hi I'm programming with stdlib under linux. The gcc emits the following warning for the following line of code, any idea why is that? FILE *fd; if ( fd = fopen( filename, "rw" )== NULL ) { and the warning is: warning: assignment makes pointer from integer without a cast. How this can be happen , according to the stdlib documentation the return type of