fs_fopen()

FS_FILE  *fs_fopen (const  char  *name_full,
                    const  char  *str_mode);

File

Called from

Code enabled by

fs_api.c

Application

FS_CFG_API_EN

Open a file.

Arguments

name_full

Name of the file. See Useful Information for information about file names.

str_mode

Access mode of the file.

Returned Value

Pointer to a file, if NO errors.

Pointer to NULL, otherwise.

Notes/Warnings

  1. The access mode should be one of the strings shown in table Opening, Reading and Writing Files - POSIX”.
  2. The character ‘b’ has no effect.
  3. Opening a file with read mode fails if the file does not exist.
  4. Opening a file with append mode causes all writes to be forced to the end-of-file.