aboutsummaryrefslogtreecommitdiffstats
path: root/man3/index.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/index.3')
-rw-r--r--man3/index.314
1 files changed, 11 insertions, 3 deletions
diff --git a/man3/index.3 b/man3/index.3
index aaa9a31922..9a3e16c982 100644
--- a/man3/index.3
+++ b/man3/index.3
@@ -38,16 +38,24 @@ index, rindex \- locate character in string
.BI "char *rindex(const char *" s ", int " c );
.fi
.SH DESCRIPTION
-The \fBindex\fP() function returns a pointer to the first occurrence
+The
+.BR index ()
+function returns a pointer to the first occurrence
of the character \fIc\fP in the string \fIs\fP.
.PP
-The \fBrindex\fP() function returns a pointer to the last occurrence
+The
+.BR rindex ()
+function returns a pointer to the last occurrence
of the character \fIc\fP in the string \fIs\fP.
.PP
The terminating NULL character is considered to be a part of the
strings.
.SH "RETURN VALUE"
-The \fBindex\fP() and \fBrindex\fP() functions return a pointer to
+The
+.BR index ()
+and
+.BR rindex ()
+functions return a pointer to
the matched character or NULL if the character is not found.
.SH "CONFORMING TO"
4.3BSD; marked as LEGACY in POSIX.1-2001.