Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/string bring in EXAMPLES from OpenBSD.
details: https://anonhg.NetBSD.org/src/rev/a3a087610bf6
branches: trunk
changeset: 535143:a3a087610bf6
user: yamt <yamt%NetBSD.org@localhost>
date: Sun Aug 11 07:36:19 2002 +0000
description:
bring in EXAMPLES from OpenBSD.
diffstat:
lib/libc/string/strchr.3 | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 960a47a03c3d -r a3a087610bf6 lib/libc/string/strchr.3
--- a/lib/libc/string/strchr.3 Sun Aug 11 07:31:56 2002 +0000
+++ b/lib/libc/string/strchr.3 Sun Aug 11 07:36:19 2002 +0000
@@ -34,9 +34,9 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strchr.3 8.2 (Berkeley) 4/19/94
-.\" $NetBSD: strchr.3,v 1.8 2002/02/07 07:00:32 ross Exp $
+.\" $NetBSD: strchr.3,v 1.9 2002/08/11 07:36:19 yamt Exp $
.\"
-.Dd April 19, 1994
+.Dd August 11, 2002
.Dt STRCHR 3
.Os
.Sh NAME
@@ -71,6 +71,18 @@
returns a pointer to the located character, or
.Dv NULL
if the character does not appear in the string.
+.Sh EXAMPLES
+After the following call to
+.Fn strchr ,
+.Va p
+will point to the string
+.Qq oobar :
+.Bd -literal -offset indent
+char *p;
+char *s = "foobar";
+
+p = strchr(s, 'o');
+.Ed
.Sh SEE ALSO
.Xr index 3 ,
.Xr memchr 3 ,
Home |
Main Index |
Thread Index |
Old Index