istream68.hGo to the documentation of this file.00001
00014
00015
00016 #ifndef _ISTREAM68_H_
00017 #define _ISTREAM68_H_
00018
00019 #ifdef __cplusplus
00020 extern "C" {
00021 #endif
00022
00032 typedef struct _istream_t istream_t;
00033
00045 const char * istream_filename(istream_t *istream);
00046
00055 int istream_open(istream_t *istream);
00056
00065 int istream_close(istream_t *istream);
00066
00077 int istream_read(istream_t *istream, void * data, int len);
00078
00088 int istream_write(istream_t *istream, const void * data, int len);
00089
00097 int istream_length(istream_t *istream);
00098
00106 int istream_tell(istream_t *istream);
00107
00118 int istream_seek(istream_t *istream, int offset);
00119
00130 int istream_seek_to(istream_t *istream, int pos);
00131
00137 void istream_destroy(istream_t *istream);
00138
00148 int istream_gets(istream_t *istream, char * buffer, int max);
00149
00157 int istream_getc(istream_t *istream);
00158
00167 int istream_puts(istream_t *istream, const char * s);
00168
00178 int istream_putc(istream_t *istream, const int c);
00179
00186 #ifdef __cplusplus
00187 }
00188 #endif
00189
00190 #endif
|