decl memory access functions

This commit is contained in:
Yuichi Nishiwaki 2014-01-16 20:04:27 +09:00
parent 6f32cbdea3
commit df313b5bd9
1 changed files with 7 additions and 0 deletions

View File

@ -64,12 +64,19 @@ int pic_ffill(pic_file *);
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 *));
/* file access */
pic_file *pic_fopen(const char *, const char *); pic_file *pic_fopen(const char *, const char *);
int pic_fclose(pic_file *); int pic_fclose(pic_file *);
/* memory access */
pic_file *pic_mropen(const char *, size_t, const char *);
pic_file *pic_mwopen(char **, size_t *);
/* direct IO with buffering */
size_t pic_fread(void *, size_t, size_t, 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 *); size_t pic_fwrite(const void *, size_t, size_t, pic_file *);
/* character IO */
int pic_fgetc(pic_file *); int pic_fgetc(pic_file *);
int pic_ungetc(int, pic_file *); int pic_ungetc(int, pic_file *);
int pic_fputc(int, pic_file *); int pic_fputc(int, pic_file *);