Gamgee
You miserable little maggot. I'll stove your head in!
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
mFILE.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdarg.h>
#include "cram/os.h"
#include "cram/mFILE.h"
#include "cram/vlen.h"

Functions

mFILEmstdin (void)
 
mFILEmstdout (void)
 
mFILEmstderr (void)
 
mFILEmfcreate (char *data, int size)
 
void mfrecreate (mFILE *mf, char *data, int size)
 
mFILEmfcreate_from (const char *path, const char *mode_str, FILE *fp)
 
mFILEmfreopen (const char *path, const char *mode_str, FILE *fp)
 
mFILEmfopen (const char *path, const char *mode)
 
int mfclose (mFILE *mf)
 
int mfdetach (mFILE *mf)
 
int mfdestroy (mFILE *mf)
 
void * mfsteal (mFILE *mf, size_t *size_out)
 
int mfseek (mFILE *mf, long offset, int whence)
 
long mftell (mFILE *mf)
 
void mrewind (mFILE *mf)
 
void mftruncate (mFILE *mf, long offset)
 
int mfeof (mFILE *mf)
 
size_t mfread (void *ptr, size_t size, size_t nmemb, mFILE *mf)
 
size_t mfwrite (void *ptr, size_t size, size_t nmemb, mFILE *mf)
 
int mfgetc (mFILE *mf)
 
int mungetc (int c, mFILE *mf)
 
char * mfgets (char *s, int size, mFILE *mf)
 
int mfflush (mFILE *mf)
 
int mfprintf (mFILE *mf, char *fmt,...)
 
void mfascii (mFILE *mf)
 

Function Documentation

void mfascii ( mFILE mf)
int mfclose ( mFILE mf)
mFILE* mfcreate ( char *  data,
int  size 
)
mFILE* mfcreate_from ( const char *  path,
const char *  mode_str,
FILE *  fp 
)
int mfdestroy ( mFILE mf)
int mfdetach ( mFILE mf)
int mfeof ( mFILE mf)
int mfflush ( mFILE mf)
int mfgetc ( mFILE mf)
char* mfgets ( char *  s,
int  size,
mFILE mf 
)
mFILE* mfopen ( const char *  path,
const char *  mode 
)
int mfprintf ( mFILE mf,
char *  fmt,
  ... 
)
size_t mfread ( void *  ptr,
size_t  size,
size_t  nmemb,
mFILE mf 
)
void mfrecreate ( mFILE mf,
char *  data,
int  size 
)
mFILE* mfreopen ( const char *  path,
const char *  mode_str,
FILE *  fp 
)
int mfseek ( mFILE mf,
long  offset,
int  whence 
)
void* mfsteal ( mFILE mf,
size_t *  size_out 
)
long mftell ( mFILE mf)
void mftruncate ( mFILE mf,
long  offset 
)
size_t mfwrite ( void *  ptr,
size_t  size,
size_t  nmemb,
mFILE mf 
)
void mrewind ( mFILE mf)
mFILE* mstderr ( void  )
mFILE* mstdin ( void  )
mFILE* mstdout ( void  )
int mungetc ( int  c,
mFILE mf 
)