beautypg.com

Function smt387fs_read – Sundance SMT387-FS User Manual

Page 18

background image

Function smt387fs_read

Synopsis

int smt387fs_read (smt387fs_stream_handle *handle, size_t size, void *buffer,
size_t *actual);

Definition

Reads up to size bytes from the open file represented by handle into the buffer at
buffer. Returns the number of bytes actually read in actual; if the end of the file is
reached before size bytes are read, actual will be less than size.

Synchronization

For performance reasons, this function is not thread safe, and must not be called
from more than one thread at any given time.

Error Conditions

FS_OPEN_MODE if the file is not open for reading.

Otherwise, returns FS_OK.

Page 18