fgetws(3) Library Functions Manual fgetws(3) fgetws - FILE C (libc, -lc) #include wchar_t *fgetws(wchar_t ws[restrict .n], int n, FILE *restrict stream); The fgetws() function is the wide-character equivalent of the fgets(3) function. It reads a string of at most n-1 wide characters into the wide-character array pointed to by ws, and adds a terminating null wide character (L'\0'). It stops reading wide characters after it has encountered and stored a newline wide character. It also stops when end of stream is reached. , ws , n . unlocked_stdio(3). fgetws() ws. , NULL. attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |fgetws() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ C11, POSIX.1-2008. POSIX.1-2001, C99. fgetws() LC_CTYPE . - , fopen(3), , fgetws() , . , , null. fgetwc(3), unlocked_stdio(3) () Azamat Hackimov , Dmitry Bolkhovskikh , Yuri Kozlov , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 15 2024 . fgetws(3)