Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

File

Called from

Code enabled by

fs_api.c

Application

FS_CFG_API_EN

Read from a file.

Arguments

p_dest

Pointer to destination buffer.

size

Size of each item to read.

nitems

Number of items to read.

p_file

Pointer to a file.

Returned Value

Number of items read.

Notes/Warnings

  1. The size or nitems is 0, then the file is unchanged and zero is returned.
  2. If the file is buffered and the last operation is output (write), then a call to fs_flush() or fs_fsetpos() or fs_fseek()must occur before input (read) can be performed.
  3. The file must have been opened in read or update (read/write) mode.
  • No labels