Programming Guide



sm_fio_getc

Reads the next byte from the specified file stream

int sm_fio_getc(int file_stream);

file_stream
A handle to the required file stream, obtained by sm_fio_open.

Returns

Description

sm_fio_getc reads a character from the specified file stream and returns the result as an integer. This function is similar to the C function fgetc and is intended to read the contents of binary files.

Note: This function only returns the ASCII integer value of the read character.