Ignore:
Timestamp:
Mar 16, 2007 9:25:47 AM (15 years ago)
Author:
bennylp
Message:

Implemented ticket #185: Added pj_file_flush() to file I/O API to flush file buffers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/file_io_ansi.c

    r974 r1074  
    155155} 
    156156 
     157PJ_DEF(pj_status_t) pj_file_flush(pj_oshandle_t fd) 
     158{ 
     159    int rc; 
    157160 
     161    rc = fflush((FILE*)fd); 
     162    if (rc == EOF) { 
     163        return PJ_RETURN_OS_ERROR(errno); 
     164    } 
     165 
     166    return PJ_SUCCESS; 
     167} 
Note: See TracChangeset for help on using the changeset viewer.