diff options
Diffstat (limited to 'baseline/source/susan/wccfile.h')
| -rw-r--r-- | baseline/source/susan/wccfile.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/baseline/source/susan/wccfile.h b/baseline/source/susan/wccfile.h new file mode 100644 index 0000000..9314361 --- /dev/null +++ b/baseline/source/susan/wccfile.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | #ifndef WCC_FILE_H | ||
| 2 | #define WCC_FILE_H | ||
| 3 | |||
| 4 | enum _Origin_ { WCCSEEK_SET, WCCSEEK_CUR, WCCSEEK_END }; | ||
| 5 | typedef enum _Origin_ Origin; | ||
| 6 | typedef unsigned int size_x; | ||
| 7 | |||
| 8 | #define EOFX -1 | ||
| 9 | |||
| 10 | struct wccFILE { | ||
| 11 | char* data; | ||
| 12 | size_x size; | ||
| 13 | unsigned cur_pos; | ||
| 14 | }; | ||
| 15 | |||
| 16 | size_x susan_wccfread (void* ptr, size_x size, size_x count, struct wccFILE* stream); | ||
| 17 | int susan_wccfseek (struct wccFILE* stream, long int offset, Origin origin); | ||
| 18 | int susan_wccfgetpos (struct wccFILE* stream, unsigned* position); | ||
| 19 | int susan_wccfeof (struct wccFILE* stream); | ||
| 20 | int susan_wccfgetc (struct wccFILE *stream); | ||
| 21 | char *susan_wccfgets (char *str, int num, struct wccFILE *stream ); | ||
| 22 | |||
| 23 | #endif | ||
| 24 | |||
