declare some low-level file IO operation methods

This commit is contained in:
Yuichi Nishiwaki 2014-01-16 18:28:37 +09:00
parent 63d23bdeda
commit 8ce83bdbe7
1 changed files with 6 additions and 0 deletions

View File

@ -43,4 +43,10 @@ struct pic_port *pic_stderr(pic_state *);
pic_file *pic_funopen(void *cookie, int (*read)(void *, char *, int), int (*write)(void *, const char *, int), fpos_t (*seek)(void *, fpos_t, int), int (*close)(void *)); pic_file *pic_funopen(void *cookie, int (*read)(void *, char *, int), int (*write)(void *, const char *, int), fpos_t (*seek)(void *, fpos_t, int), int (*close)(void *));
pic_file *pic_fopen(const char *, const char *);
int pic_fclose(pic_file *);
size_t pic_fread(void *, size_t, size_t, pic_file *);
size_t pic_fwrite(const void *, size_t, size_t, pic_file *);
#endif #endif