3 ms·
Said another way, the for loop can be written as FILE *fp = fopen( path, mode ); while( fp ) { fclose( fp ); fp = 0; } NULL (and 0) eva
by oso2k 11y ago
Said another way, the for loop can be written as
FILE *fp = fopen( path, mode );
while( fp )
{
fclose( fp );
fp = 0;
}
NULL (and 0) evaluate to false in C.