Namespaces
Variants
Views
Actions

std::fwgets

From cppreference.com
< cpp‎ | io‎ | c
Revision as of 18:21, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 
Defined in header <cwchar>
wchar_t *fgetws( wchar_t *str, int count, FILE *stream );

Reads at most count - 1 wide characters from the given file stream and stores them in str. The produced wide string is always NULL-terminated. Parsing stops if end-of-file occurs or a newline wide character is found, in which case str will contain that wide newline character.

Parameters

str - wide string to read the characters to
count - the length of str
stream - file stream to read the data from

Return value

str on success, NULL on an error

See also

Template:cpp/io/c/dcl list fwscanfTemplate:cpp/io/c/dcl list fgetwcTemplate:cpp/io/c/dcl list fputws
C documentation for fgetws