This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] Fix two manual typo
- From: GOTO Masanori <gotom at debian dot or dot jp>
- To: GOTO Masanori <gotom at debian dot or dot jp>, libc-alpha at sources dot redhat dot com
- Date: Fri, 14 Jan 2005 12:11:07 +0900
- Subject: [PATCH] Fix two manual typo
This patch fixes two typo in manual. sbrk is not defined as void *,
strcasestr example does not use strcasestr. Type sbrk() is sometimes
defined variously, but glibc uses void * generally.
Regards,
-- gotom
2005-01-14 GOTO Masanori <gotom@debian.or.jp>
* manual/memory.texi (sbrk): Fix definition.
* manual/string.texi (strcasestr): Fix example typo.
Index: manual/memory.texi
===================================================================
RCS file: /cvs/glibc/libc/manual/memory.texi,v
retrieving revision 1.78
diff -u -r1.78 memory.texi
--- manual/memory.texi 18 Oct 2004 00:53:12 -0000 1.78
+++ manual/memory.texi 14 Jan 2005 01:48:49 -0000
@@ -2384,7 +2384,7 @@
@comment unistd.h
@comment BSD
-@deftypefun int sbrk (ptrdiff_t @var{delta})
+@deftypefun void *sbrk (ptrdiff_t @var{delta})
This function is the same as @code{brk} except that you specify the new
end of the data segment as an offset @var{delta} from the current end
and on success the return value is the address of the resulting end of
Index: manual/string.texi
===================================================================
RCS file: /cvs/glibc/libc/manual/string.texi,v
retrieving revision 1.69
diff -u -r1.69 string.texi
--- manual/string.texi 14 Jul 2004 17:10:28 -0000 1.69
+++ manual/string.texi 13 Jan 2005 10:59:38 -0000
@@ -1781,9 +1781,9 @@
For example,
@smallexample
-strstr ("hello, world", "L")
+strcasestr ("hello, world", "L")
@result{} "llo, world"
-strstr ("hello, World", "wo")
+strcasestr ("hello, World", "wo")
@result{} "World"
@end smallexample
@end deftypefun