Defined in header <wchar.h> | ||
---|---|---|
wchar_t *fgetws( wchar_t *str, int count, FILE *stream ); | (since C95) |
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.
str | - | wide string to read the characters to |
count | - | the length of str |
stream | - | file stream to read the data from |
str
on success, NULL
on an error.
(C95)(C95)(C95)(C11)(C11)(C11) | reads formatted wide character input from stdin , a file stream or a buffer (function) |
(C95) | gets a wide character from a file stream (function) |
(C95) | writes a wide string to a file stream (function) |
(dynamic memory TR) | read from a stream into a automatically resized buffer until delimiter/end of line (function) |
C++ documentation for fgetws |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/c/io/fgetws