From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/c/io%2Ffgetws.html | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 devdocs/c/io%2Ffgetws.html (limited to 'devdocs/c/io%2Ffgetws.html') diff --git a/devdocs/c/io%2Ffgetws.html b/devdocs/c/io%2Ffgetws.html new file mode 100644 index 00000000..acd7f5bb --- /dev/null +++ b/devdocs/c/io%2Ffgetws.html @@ -0,0 +1,32 @@ +

fgetws

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 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

References

See also

+ + + + +
+
(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 an 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.
+ https://en.cppreference.com/w/c/io/fgetws +

+
-- cgit v1.2.3