FGETWSSection: Linux Programmer's Manual (3)Updated: 1999-07-25 |
FGETWSSection: Linux Programmer's Manual (3)Updated: 1999-07-25 |
#include <wchar.h> wchar_t *fgetws(wchar_t *ws, int n, FILE *stream);
The programmer must ensure that there is room for at least n wide characters at ws.
For a non-locking counterpart, see unlocked_stdio(3).
In the absence of additional information passed to the fopen call, it is reasonable to expect that fgetws will actually read a multibyte string from the stream and then convert it to a wide character string.
This function is unreliable, because it does not permit to deal properly with null wide characters that may be present in the input.