[PATCH] Fix example in charset.texi
Art Haas
ahaas@airmail.net
Tue Jul 22 14:36:00 GMT 2003
Hi.
The example function returns the wrong variable. 'wcp' is the pointer
from malloc(), 'result' points at the end of the string.
2003-07-21 Art Haas <ahaas@airmail.net>
* charset.texi: Fix example to return correct variable.
Index: manual/charset.texi
===================================================================
RCS file: /cvs/glibc/libc/manual/charset.texi,v
retrieving revision 1.37
diff -u -u -r1.37 charset.texi
--- manual/charset.texi 30 Jun 2002 03:35:20 -0000 1.37
+++ manual/charset.texi 22 Jul 2003 14:30:22 -0000
@@ -700,7 +700,7 @@
len -= nbytes;
s += nbytes;
@}
- return result;
+ return wcp;
@}
@end smallexample
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas Jefferson to James Smith, 1822
More information about the Libc-alpha
mailing list