Skip to content

Commit

Permalink
Extended Char Intro: Use getwc in example (Bug 25626)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
codonell committed Mar 20, 2020
1 parent 910a835 commit b8de798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manual/charset.texi
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ are used:
@{
wint_t c;
@dots{}
while ((c = wgetc (fp)) != WEOF)
while ((c = getwc (fp)) != WEOF)
@dots{}
@}
@end smallexample
Expand Down

0 comments on commit b8de798

Please sign in to comment.