Skip to content

7.26 lou_readCharFromFile

int lou_readCharFromFile (
  const char *fileName,
  int *mode);

This function is provided for situations where it is necessary to read a file which may contain little-endian or big-endian 16-bit Unicode characters or ASCII8 characters. The return value is a little-endian character, encoded as an integer. The fileName parameter is the name of the file to be read. The mode parameter is a pointer to an integer which must be set to 1 on the first call. After that, the function takes care of it. On end-of-file the function returns EOF.