 |
m2mb API docs
25.30.003
m2mb API sets documentation
|
Go to the documentation of this file.
38 #ifndef M2M_M2MB_FS_STDIO_H
39 #define M2M_M2MB_FS_STDIO_H
47 #ifndef M2M_M2MB_FS_POSIX_H
49 #define M2MB_SEEK_SET 0
50 #define M2MB_SEEK_CUR 1
51 #define M2MB_SEEK_END 2
56 typedef struct M2MB_FILE_TAG M2MB_FILE_T;
99 M2MB_FILE_T *
m2mb_fs_fopen(
const CHAR *path,
const CHAR *mode );
133 SIZE_T
m2mb_fs_fread(
void *ptr, SIZE_T size, SIZE_T nitems, M2MB_FILE_T *stream );
167 SIZE_T
m2mb_fs_fwrite(
void *ptr, SIZE_T size, SIZE_T nitems, M2MB_FILE_T *stream );
228 INT32
m2mb_fs_fseek( M2MB_FILE_T *stream, INT32 offset, INT32 whence );
367 CHAR *
m2mb_fs_fgets( CHAR *s, INT32 size, M2MB_FILE_T *stream );
INT32 m2mb_fs_ftell(M2MB_FILE_T *stream)
Get file position indicator.
SIZE_T m2mb_fs_fread(void *ptr, SIZE_T size, SIZE_T nitems, M2MB_FILE_T *stream)
Read file as stream.
INT32 m2mb_fs_fflush(M2MB_FILE_T *stream)
Flush file as stream.
INT32 m2mb_fs_remove(const CHAR *path)
Delete file.
INT32 m2mb_fs_rename(const CHAR *oldpath, const CHAR *newpath)
Rename file or directory.
INT32 m2mb_fs_fgetc(M2MB_FILE_T *stream)
Read char from file as stream.
INT32 m2mb_fs_fputc(INT32 c, M2MB_FILE_T *stream)
Write char to file as stream.
INT32 m2mb_fs_fseek(M2MB_FILE_T *stream, INT32 offset, INT32 whence)
Move file position indicator.
M2MB_FILE_T * m2mb_fs_fopen(const CHAR *path, const CHAR *mode)
Open file as stream.
INT32 m2mb_fs_fputs(const CHAR *s, M2MB_FILE_T *stream)
Write string to file as stream.
CHAR * m2mb_fs_fgets(CHAR *s, INT32 size, M2MB_FILE_T *stream)
Read line string from file as stream.
SIZE_T m2mb_fs_fwrite(void *ptr, SIZE_T size, SIZE_T nitems, M2MB_FILE_T *stream)
Write file as stream.
INT32 m2mb_fs_fileno(M2MB_FILE_T *stream)
Get file integer descriptor.
INT32 m2mb_fs_fclose(M2MB_FILE_T *stream)
Close file as stream.