RINDEX
Section: C Library Functions (3)
Index
Return to Main Contents
BSD mandoc
NAME
rindex
- locate character in string
SYNOPSIS
Fd #include <string.h>
Ft char *
Fn rindex const char *s int c
DESCRIPTION
The
Fn rindex
function
locates the last character
matching
Fa c
(converted to a
char
in the null-terminated string
Fa s .
The character c is returned if it is found; otherwise NULL is returned.
If
Fa c
is
`\0'
,
Fn rindex
locates the terminating
`\0'
SEE ALSO
index(3),
memchr(3),
strchr(3),
strcspn(3),
strpbrk(3),
strrchr(3),
strsep(3),
strspn(3),
strstr(3),
strtok(3)
HISTORY
A
Fn rindex
function appeared in
AT&T System
v6 .
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- HISTORY
-
This document was created by
man2html,
using the manual pages.
Time: 15:52:51 GMT, January 15, 2023