Changes in src/libcfa/fstream [6ba0659:d3b7937]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/fstream
r6ba0659 rd3b7937 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Feb 17 14:02:01 201613 // Update Count : 2212 // Last Modified On : Wed Jan 27 23:47:41 2016 13 // Update Count : 3 14 14 // 15 15 … … 19 19 #include "iostream" 20 20 21 typedef struct ofstream ofstream; 22 21 23 // implement context ostream 22 struct ofstream; 24 ofstream *write( ofstream *, const char *, streamsize_type ); 25 int fail( ofstream * ); 23 26 24 int fail( ofstream * os ); 25 int flush( ofstream * os ); 26 void open( ofstream ** os, const char * name, const char * mode ); 27 void close( ofstream * os ); 28 ofstream * write( ofstream * os, const char * data, streamsize_type size ); 27 ofstream *ofstream_stdout(); 28 ofstream *ofstream_stderr(); 29 ofstream *ofstream_fromfile( const char *name ); 30 void ofstream_close( ofstream *os ); 29 31 30 extern ofstream * sout, * serr;32 typedef struct ifstream ifstream; 31 33 32 34 // implement context istream 33 struct ifstream; 35 ifstream *read( ifstream *, char *, streamsize_type ); 36 ifstream *unread( ifstream *, char ); 37 int fail( ifstream * ); 38 int eof( ifstream * ); 34 39 35 int fail( ifstream * is ); 36 int eof( ifstream * is ); 37 void open( ifstream ** is, const char * name, const char * mode ); 38 void close( ifstream * is ); 39 ifstream * get( ifstream * is, int * data ); 40 ifstream * read( ifstream * is, char * data, streamsize_type size ); 41 ifstream * ungetc( ifstream * is, char c ); 42 43 extern ifstream *sin; 40 ifstream *ifstream_stdin(); 41 ifstream *ifstream_fromfile( const char *name ); 44 42 45 43 #endif // __FSTREAM_H__
Note:
See TracChangeset
for help on using the changeset viewer.