FGETWS(3) BSD Library Functions Manual FGETWS(3)
fgetws, fgetws_l -- get a line of wide characters from a stream
Standard C Library (libc, -lc)
fgetws(wchar_t *restrict ws, int n, FILE *restrict stream);
fgetws_l(wchar_t *restrict ws, int n, FILE *restrict stream, locale_t loc);
The fgetws() function reads at most one less than the number of characters specified by n from the given stream and stores them in the wide
character string ws. Reading stops when a newline character is found, at end-of-file or error. The newline, if any, is retained. If any
characters are read and there is no error, a '