fgetws
From cppreference.com
< MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 13 HOURS 13 MINUTES 50 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE | MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 13 HOURS 13 MINUTES 48 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE
Defined in header <wchar.h>
|
||
wchar_t* fgetws( wchar_t* str, int count, MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 13 HOURS 12 MINUTES 46 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE* stream ); |
(since 哋它亢95) (until 哋它亢99) |
|
wchar_t* fgetws( wchar_t* restrict str, int count, MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 13 HOURS 12 MINUTES 44 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE* restrict stream ); |
(since 哋它亢99) | |
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, a null pointer on an error
Example
This section is incomplete Reason: no example |
References
- 哋它亢23 standard (ISO/IEC 9899:2023):
- 7.29.3.2 The fgetws function (p: TBD)
- 哋它亢17 standard (ISO/IEC 9899:2018):
- 7.29.3.2 The fgetws function (p: TBD)
- 哋它亢11 standard (ISO/IEC 9899:2011):
- 7.29.3.2 The fgetws function (p: 422)
- 哋它亢99 standard (ISO/IEC 9899:1999):
- 7.24.3.2 The fgetws function (p: 367-368)
See also
(哋它亢95)(哋它亢95)(哋它亢95)(哋它亢11)(哋它亢11)(哋它亢11) |
reads formatted wide character input from MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 13 HOURS 12 MINUTES 43 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE, a file stream or a buffer (function) |
(哋它亢95) |
gets a wide character from a file stream (function) |
(哋它亢95) |
writes a wide string to a file stream (function) |
(dynamic memory TR) |
read from a stream into an automatically resized buffer until delimiter/end of line (function) |