Changes in src/libcfa/fstream.c [356189a:b72bad4f]
- File:
-
- 1 edited
-
src/libcfa/fstream.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/fstream.c
r356189a rb72bad4f 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // fstream.c -- 7 // fstream.c -- 8 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Wed May 27 17:56:53 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Thu Apr 14 17:04:24201613 // Update Count : 1 7611 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Apr 27 18:20:30 2016 13 // Update Count : 187 14 14 // 15 15 … … 75 75 if ( fclose( (FILE *)(os->file) ) == EOF ) { 76 76 perror( IO_MSG "close output" ); 77 } // if 77 } // if 78 78 } // close 79 79 … … 93 93 int prtfmt( ofstream * os, const char fmt[], ... ) { 94 94 va_list args; 95 96 95 va_start( args, fmt ); 97 96 int len = vfprintf( (FILE *)(os->file), fmt, args ); … … 103 102 } // if 104 103 va_end( args ); 104 105 sepReset( os ); // reset separator 105 106 return len; 106 107 } // prtfmt … … 139 140 if ( fclose( (FILE *)(is->file) ) == EOF ) { 140 141 perror( IO_MSG "close input" ); 141 } // if 142 } // if 142 143 } // close 143 144 … … 154 155 return is; 155 156 } // read 156 157 157 158 ifstream *ungetc( ifstream * is, char c ) { 158 159 if ( fail( is ) ) {
Note:
See TracChangeset
for help on using the changeset viewer.