From: Carlos O'Donell Date: Thu, 5 Mar 2020 02:19:36 +0000 (-0500) Subject: Extended Char Intro: Use getwc in example (Bug 25626) X-Git-Tag: glibc-2.32~492 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8de7980c06d97f36cdf4fe0871be7ec8ca58073;p=thirdparty%2Fglibc.git Extended Char Intro: Use getwc in example (Bug 25626) In the "Extended Char Intro" the example incorrectly uses a function called wgetc which doesn't exist. The example is corrected to use getwc, which is correct for the use in this case. Reported-by: Toomas Rosin --- diff --git a/manual/charset.texi b/manual/charset.texi index f6a980f6cb4..9fd01661157 100644 --- a/manual/charset.texi +++ b/manual/charset.texi @@ -186,7 +186,7 @@ are used: @{ wint_t c; @dots{} - while ((c = wgetc (fp)) != WEOF) + while ((c = getwc (fp)) != WEOF) @dots{} @} @end smallexample