ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change
on this file since 51b7345 was
51b7345,
checked in by Peter A. Buhr <pabuhr@…>, 10 years ago
|
initial commit
|
-
Property mode set to
100644
|
File size:
676 bytes
|
Rev | Line | |
---|
[51b7345] | 1 | #ifndef FSTREAM_H |
---|
| 2 | #define FSTREAM_H |
---|
| 3 | |
---|
| 4 | #include "iostream.h" |
---|
| 5 | |
---|
| 6 | typedef struct ofstream ofstream; |
---|
| 7 | |
---|
| 8 | /* implement context ostream */ |
---|
| 9 | ofstream *write( ofstream *, const char *, streamsize_type ); |
---|
| 10 | int fail( ofstream * ); |
---|
| 11 | |
---|
| 12 | ofstream *ofstream_stdout(); |
---|
| 13 | ofstream *ofstream_stderr(); |
---|
| 14 | ofstream *ofstream_fromfile( const char *name ); |
---|
| 15 | void ofstream_close( ofstream *os ); |
---|
| 16 | |
---|
| 17 | typedef struct ifstream ifstream; |
---|
| 18 | |
---|
| 19 | /* implement context istream */ |
---|
| 20 | ifstream *read( ifstream *, char *, streamsize_type ); |
---|
| 21 | ifstream *unread( ifstream *, char ); |
---|
| 22 | int fail( ifstream * ); |
---|
| 23 | int eof( ifstream * ); |
---|
| 24 | |
---|
| 25 | ifstream *ifstream_stdin(); |
---|
| 26 | ifstream *ifstream_fromfile( const char *name ); |
---|
| 27 | |
---|
| 28 | #endif /* #ifndef FSTREAM_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.