WE310F5  39.00.000
m2mb_fs_stdio.h File Reference

File system stdio library implementation. More...

Go to the source code of this file.

#define NULL   0
 
#define M2MB_SEEK_SET   0
 
#define M2MB_SEEK_CUR   1
 
#define M2MB_SEEK_END   2
 
typedef struct M2MB_FILE_TAG M2MB_FILE_T
 
M2MB_FILE_Tm2mb_fs_fopen (const CHAR *path, const CHAR *mode)
 Opens file as stream. More...
 
SIZE_T m2mb_fs_fread (void *ptr, SIZE_T size, SIZE_T nitems, M2MB_FILE_T *stream)
 Read file as stream. More...
 
SIZE_T m2mb_fs_fwrite (void *ptr, SIZE_T size, SIZE_T nitems, M2MB_FILE_T *stream)
 Write file as stream. More...
 
INT32 m2mb_fs_fclose (M2MB_FILE_T *stream)
 Close file as stream. More...
 
INT32 m2mb_fs_fseek (M2MB_FILE_T *stream, INT32 offset, INT32 whence)
 Move file position indicator. More...
 
INT32 m2mb_fs_ftell (M2MB_FILE_T *stream)
 Get file position indicator. More...
 
INT32 m2mb_fs_fgetc (M2MB_FILE_T *stream)
 Read char from file as stream. More...
 
CHARm2mb_fs_fgets (CHAR *s, INT32 size, M2MB_FILE_T *stream)
 Read line string from file as stream. More...
 
INT32 m2mb_fs_fputc (INT32 c, M2MB_FILE_T *stream)
 Write char to file as stream. More...
 
INT32 m2mb_fs_fputs (const CHAR *s, M2MB_FILE_T *stream)
 Write string to file as stream. More...
 
INT32 m2mb_fs_remove (const CHAR *path)
 Delete file. More...
 
INT32 m2mb_fs_rename (const CHAR *oldpath, const CHAR *newpath)
 Rename file or directory. More...
 

Detailed Description

File system stdio library implementation.

we866e4/epl/inc/modules/m2mb_fs_stdio.h

stdio library for files.

Note
Dependencies: m2m/m2m_common/m2mb_inc/m2mb_types.h
Author
SP
Date
29/05/2018

Definition in file m2mb_fs_stdio.h.