close
fopen => fopen_s
FILE* fopen ( const char * filename, const char * mode );.
errno_t fopen_s( FILE** pFile, const char *filename, const char *mode );
stream = fopen(FileData.cFileName,"r");
if(stream==NULL){
printf("cannot open file\n");
exit(0);
}
printf("cannot open file\n");
exit(0);
}
------------------------------------------------
if( fopen_s( &stream, FileData.cFileName, "r" ) !=0 )
printf( "The file 'crt_fopen_s.c' was not opened\n" );
exit(0);
printf( "The file 'crt_fopen_s.c' was not opened\n" );
exit(0);
}
全站熱搜
留言列表