]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Extended Char Intro: Use getwc in example (Bug 25626)
authorCarlos O'Donell <carlos@redhat.com>
Thu, 5 Mar 2020 02:19:36 +0000 (21:19 -0500)
committerCarlos O'Donell <carlos@redhat.com>
Fri, 20 Mar 2020 21:13:03 +0000 (17:13 -0400)
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 <toomas@rosin.ee>
manual/charset.texi

index f6a980f6cb444f1993c0a0360e6d396d6d13755f..9fd016611570062b7060dbafc685329cf7101060 100644 (file)
@@ -186,7 +186,7 @@ are used:
 @{
   wint_t c;
   @dots{}
-  while ((c = wgetc (fp)) != WEOF)
+  while ((c = getwc (fp)) != WEOF)
     @dots{}
 @}
 @end smallexample