wchar_t *fgetws(wchar_t *ws, size_t n, FILE *stream);
Points to a buffer that is to hold the characters read.
Is the maximum number of elements to read into the array pointed to by ws.
Is the stream from which the characters are read.
On failure, errno is set to one of the following values:
Another process has the file locked.
stream is not a valid stream opened for reading.
An unrecognizable character code was encountered.
A signal interrupted the call.
An input error occurred.
The open object is a directory, not a file.
Memory could not be allocated for internal buffers.
A device error occurred.
The file is a regular file and an attempt was made to read at or beyond the offset maximum associated with the corresponding stream.
The underlying file descriptor is a non-blocking socket and no data is ready to be read.
For files open in text mode, the character sequence carriage-return linefeed is translated into linefeed. No such translation occurs for files open in binary mode.
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.2 Documentation Build 28.