FGETWS(3) BSD Library Functions Manual FGETWS(3)
NAME
fgetws, fgetws_l -- get a line of wide characters from a stream
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <stdio.h>
#include <wchar.h>
wchar_t *
fgetws(wchar_t *restrict ws, int n, FILE *restrict stream);
#include <stdio.h>
#include <wchar.h>
#include <xlocale.h>
wchar_t *
fgetws_l(wchar_t *restrict ws, int n, FILE *restrict stream, locale_t loc);
DESCRIPTION
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 '