{"id":6943,"date":"2022-12-20T19:34:24","date_gmt":"2022-12-20T22:34:24","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/fgetwc-man3\/"},"modified":"2022-12-20T19:34:24","modified_gmt":"2022-12-20T22:34:24","slug":"fgetwc-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/fgetwc-man3\/","title":{"rendered":"FGETWC (man3)"},"content":{"rendered":"<h1 align=\"center\">FGETWC<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#RETURN VALUE\">RETURN VALUE<\/a><br \/> <a href=\"#ERRORS\">ERRORS<\/a><br \/> <a href=\"#ATTRIBUTES\">ATTRIBUTES<\/a><br \/> <a href=\"#CONFORMING TO\">CONFORMING TO<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#COLOPHON\">COLOPHON<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">fgetwc, getwc \u2212 read a wide character from a FILE stream<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>#include <stdio.h> <br \/> #include <wchar.h><\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>wint_t fgetwc(FILE *<\/b><i>stream<\/i><b>); <br \/> wint_t getwc(FILE *<\/b><i>stream<\/i><b>);<\/b><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>fgetwc<\/b>() function is the wide-character equivalent of the <b>fgetc<\/b>(3) function. It reads a wide character from <i>stream<\/i> and returns it. If the end of stream is reached, or if <i>ferror(stream)<\/i> becomes true, it returns <b>WEOF<\/b>. If a wide-character conversion error occurs, it sets <i>errno<\/i> to <b>EILSEQ<\/b> and returns <b>WEOF<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>getwc<\/b>() function or macro functions identically to <b>fgetwc<\/b>(). It may be implemented as a macro, and may evaluate its argument more than once. There is no reason ever to use it.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">For nonlocking counterparts, see <b>unlocked_stdio<\/b>(3).<\/p>\n<h2>RETURN VALUE <a name=\"RETURN VALUE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>fgetwc<\/b>() function returns the next wide-character from the stream, or <b>WEOF<\/b>. In the event of an error, <i>errno<\/i> is set to indicate the cause.<\/p>\n<h2>ERRORS <a name=\"ERRORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Apart from the usual ones, there is<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>EILSEQ<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>The data obtained from the input stream does not form a valid character.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>ATTRIBUTES <a name=\"ATTRIBUTES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">For an explanation of the terms used in this section, see <b>attributes<\/b>(7).<\/p>\n<p align=\"center\" style=\"margin-top: 1em\"><img decoding=\"async\" src=\"grohtml-1634891.png\" alt=\"Image grohtml-1634891.png\"><\/p>\n<h2>CONFORMING TO <a name=\"CONFORMING TO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">POSIX.1-2001, POSIX.1-2008, C99.<\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The behavior of <b>fgetwc<\/b>() depends on the <b>LC_CTYPE<\/b> category of the current locale.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In the absence of additional information passed to the <b>fopen<\/b>(3) call, it is reasonable to expect that <b>fgetwc<\/b>() will actually read a multibyte sequence from the stream and then convert it to a wide character.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>fgetws<\/b>(3), <b>fputwc<\/b>(3), <b>ungetwc<\/b>(3), <b>unlocked_stdio<\/b>(3)<\/p>\n<h2>COLOPHON <a name=\"COLOPHON\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This page is part of release 5.10 of the Linux <i>man-pages<\/i> project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https:\/\/www.kernel.org\/doc\/man\u2212pages\/.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  fgetwc, getwc \u2212 read a wide character from a FILE stream <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2536],"tags":[2538,1793,3007],"class_list":["post-6943","post","type-post","status-publish","format-standard","hentry","category-3-llamadas-de-bibliotecas","tag-2538","tag-fgetwc","tag-man3"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=6943"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6943\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}