Changeset 36 for pjproject/main/pjlib/src/pj/file_io_ansi.c
- Timestamp:
- Nov 9, 2005 3:37:19 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/main/pjlib/src/pj/file_io_ansi.c
r18 r36 68 68 written = fwrite(data, 1, *size, (FILE*)fd); 69 69 if (ferror((FILE*)fd)) { 70 *size = -1; 70 71 return PJ_RETURN_OS_ERROR(errno); 71 72 } … … 84 85 bytes = fread(data, 1, *size, (FILE*)fd); 85 86 if (ferror((FILE*)fd)) { 87 *size = -1; 86 88 return PJ_RETURN_OS_ERROR(errno); 87 89 }
Note: See TracChangeset
for help on using the changeset viewer.