Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/fstream

    r6ba0659 rd3b7937  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Feb 17 14:02:01 2016
    13 // Update Count     : 22
     12// Last Modified On : Wed Jan 27 23:47:41 2016
     13// Update Count     : 3
    1414//
    1515
     
    1919#include "iostream"
    2020
     21typedef struct ofstream ofstream;
     22
    2123// implement context ostream
    22 struct ofstream;
     24ofstream *write( ofstream *, const char *, streamsize_type );
     25int fail( ofstream * );
    2326
    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 );
     27ofstream *ofstream_stdout();
     28ofstream *ofstream_stderr();
     29ofstream *ofstream_fromfile( const char *name );
     30void ofstream_close( ofstream *os );
    2931
    30 extern ofstream * sout, * serr;
     32typedef struct ifstream ifstream;
    3133
    3234// implement context istream
    33 struct ifstream;
     35ifstream *read( ifstream *, char *, streamsize_type );
     36ifstream *unread( ifstream *, char );
     37int fail( ifstream * );
     38int eof( ifstream * );
    3439
    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;
     40ifstream *ifstream_stdin();
     41ifstream *ifstream_fromfile( const char *name );
    4442
    4543#endif // __FSTREAM_H__
Note: See TracChangeset for help on using the changeset viewer.