about summary refs log tree commit diff
path: root/manual
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@redhat.com>2020-03-04 21:19:36 -0500
committerCarlos O'Donell <carlos@redhat.com>2020-03-20 17:13:03 -0400
commitb8de7980c06d97f36cdf4fe0871be7ec8ca58073 (patch)
tree577eb48dfe3c29fa14e35f74676bd9a0308e7194 /manual
parent910a835dc96c1f518ac2a6179fc622ba81ffb159 (diff)
downloadglibc-b8de7980c06d97f36cdf4fe0871be7ec8ca58073.tar.gz
glibc-b8de7980c06d97f36cdf4fe0871be7ec8ca58073.tar.xz
glibc-b8de7980c06d97f36cdf4fe0871be7ec8ca58073.zip
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 <toomas@rosin.ee>
Diffstat (limited to 'manual')
-rw-r--r--manual/charset.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/charset.texi b/manual/charset.texi
index f6a980f6cb..9fd0166115 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