Namespaces
Variants
Views
Actions

fgetws

From cppreference.com
< c‎ | io
Revision as of 21:36, 31 May 2013 by P12bot (Talk | contribs)

Defined in header <wchar.h>
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

(C95)(C95)(C95)
reads formatted wide character input from stdin, a file stream or a buffer
(function) [edit]
gets a wide character from a file stream
(function) [edit]
(C95)
writes a wide string to a file stream
(function) [edit]