This commit is contained in:
Yuichi Nishiwaki 2014-01-16 20:27:39 +09:00
parent 8709ada140
commit 9fbf7e1914
1 changed files with 4 additions and 2 deletions

View File

@ -58,12 +58,14 @@ struct pic_port *pic_stdin(pic_state *);
struct pic_port *pic_stdout(pic_state *);
struct pic_port *pic_stderr(pic_state *);
/* generic file constructor */
pic_file *pic_funopen(void *cookie, int (*read)(void *, char *, int), int (*write)(void *, const char *, int), long (*seek)(void *, long, int), int (*close)(void *));
/* buffering */
int pic_setvbuf(pic_file *, char *, int, size_t);
int pic_fflush(pic_file *);
int pic_ffill(pic_file *);
pic_file *pic_funopen(void *cookie, int (*read)(void *, char *, int), int (*write)(void *, const char *, int), long (*seek)(void *, long, int), int (*close)(void *));
/* file access */
pic_file *pic_fopen(const char *, const char *);
int pic_fclose(pic_file *);