| Types and objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <wchar.h> | ||
wchar_t* fgetws(wchar_t* str,int count,FILE* stream); | (since C95) (until C99) | |
wchar_t* fgetws(wchar_t*restrict str,int count,FILE*restrict stream); | (since C99) | |
Reads at mostcount-1 wide characters from the given file stream and stores them instr. The produced wide string is always null-terminated. Parsing stops if end-of-file occurs or a newline wide character is found, in which casestr will contain that wide newline character.
Contents |
| str | - | wide string to read the characters to |
| count | - | the length ofstr |
| stream | - | file stream to read the data from |
str on success, a null pointer on an error
| This section is incomplete Reason: no example |
(C95)(C95)(C95)(C11)(C11)(C11) | reads formatted wide character input fromstdin, a file stream or a buffer (function)[edit] |
(C95) | gets a wide character from a file stream (function)[edit] |
(C95) | writes a wide string to a file stream (function)[edit] |
(dynamic memory TR) | read from a stream into an automatically resized buffer until delimiter/end of line (function)[edit] |
C++ documentation forfgetws | |