Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void log_file_check(LPLOGFILE logfile)
- {
- struct stat sb;
- if(!logfile) // fix
- return;
- // ¨¡AAIAI ¨ú©ªA¢¬©öC¡¤I ¢¥U¨öA ¢¯¡þ¢¥U.
- if (stat(logfile->filename, &sb) != 0 && errno == ENOENT)
- {
- fclose(logfile->fp);
- logfile->fp = fopen(logfile->filename, "a+");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement