mirror of git://sourceware.org/git/glibc.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 <toomas@rosin.ee>
This commit is contained in:
parent
910a835dc9
commit
b8de7980c0
|
@ -186,7 +186,7 @@ are used:
|
||||||
@{
|
@{
|
||||||
wint_t c;
|
wint_t c;
|
||||||
@dots{}
|
@dots{}
|
||||||
while ((c = wgetc (fp)) != WEOF)
|
while ((c = getwc (fp)) != WEOF)
|
||||||
@dots{}
|
@dots{}
|
||||||
@}
|
@}
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
Loading…
Reference in New Issue