RINDEX(3) Library Functions Manual RINDEX(3)
NAME
rindex — character
string operations (LEGACY)
SYNOPSIS
char *rindex(const char *s, int c);
DESCRIPTION
The rindex () function shall be equivalent
to strrchr(3) .
RETURN VALUE
Refer to strrchr(3) .
ERRORS
Refer to strrchr(3) .
EXAMPLES
None.
APPLICATION USAGE
The strrchr(3) function is preferred over this function.
For maximum portability, it is recommended to replace the function
call to rindex () as follows:
#define rindex(a,b) strrchr((a),(b))
RATIONALE
None.
FUTURE DIRECTIONS
This function may be withdrawn in a future version.
SEE ALSO
strrchr(3) , the Base Definitions volume of IEEE Std 1003.1-2001 (“POSIX.1”), <strings.h>
CHANGE HISTORY
First released in Issue 4, Version 2.
Issue 5
Moved from X/OPEN UNIX extension to BASE.
Issue 6
This function is marked LEGACY.
End of informative text. footer end
December 6, 2001 posix.fail