68 size_t mfread(
void *ptr,
size_t size,
size_t nmemb,
mFILE *mf);
69 size_t mfwrite(
void *ptr,
size_t size,
size_t nmemb,
mFILE *mf);
int mfeof(mFILE *mf)
Definition: mFILE.c:421
int mode
Definition: mFILE.h:45
char * data
Definition: mFILE.h:42
mFILE * mfcreate_from(const char *path, const char *mode_str, FILE *fp)
Definition: mFILE.c:209
int eof
Definition: mFILE.h:44
void mrewind(mFILE *mf)
Definition: mFILE.c:402
FILE * fp
Definition: mFILE.h:41
size_t size
Definition: mFILE.h:46
int mfprintf(mFILE *mf, char *fmt,...)
Definition: mFILE.c:578
int mfclose(mFILE *mf)
Definition: mFILE.c:304
int mfgetc(mFILE *mf)
Definition: mFILE.c:484
int mfseek(mFILE *mf, long offset, int whence)
Definition: mFILE.c:378
int mfdestroy(mFILE *mf)
Definition: mFILE.c:339
mFILE * mfopen(const char *path, const char *mode)
Definition: mFILE.c:290
int mfdetach(mFILE *mf)
Definition: mFILE.c:322
mFILE * mstderr(void)
Definition: mFILE.c:155
size_t offset
Definition: mFILE.h:47
int mfflush(mFILE *mf)
Definition: mFILE.c:534
size_t mfwrite(void *ptr, size_t size, size_t nmemb, mFILE *mf)
Definition: mFILE.c:454
char * mfgets(char *s, int size, mFILE *mf)
Definition: mFILE.c:504
mFILE * mfreopen(const char *path, const char *mode, FILE *fp)
Definition: mFILE.c:227
mFILE * mstdin(void)
Definition: mFILE.c:114
size_t alloced
Definition: mFILE.h:43
size_t flush_pos
Definition: mFILE.h:48
void * mfsteal(mFILE *mf, size_t *size_out)
Definition: mFILE.c:357
void mfascii(mFILE *mf)
Definition: mFILE.c:622
mFILE * mfcreate(char *data, int size)
Definition: mFILE.c:170
void mftruncate(mFILE *mf, long offset)
Definition: mFILE.c:415
int mungetc(int c, mFILE *mf)
Definition: mFILE.c:494
size_t mfread(void *ptr, size_t size, size_t nmemb, mFILE *mf)
Definition: mFILE.c:429
void mfrecreate(mFILE *mf, char *data, int size)
Definition: mFILE.c:188
mFILE * mstdout(void)
Definition: mFILE.c:139
long mftell(mFILE *mf)
Definition: mFILE.c:398