RINDEX(3) Library Functions Manual RINDEX(3)

rindexcharacter string operations (LEGACY)


#include <strings.h>

char *rindex(const char *s, int c);

The rindex () function shall be equivalent to strrchr(3) .

Refer to strrchr(3) .

Refer to strrchr(3) .

None.

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))

None.

This function may be withdrawn in a future version.

strrchr(3) , the Base Definitions volume of IEEE Std 1003.1-2001 (“POSIX.1”), <strings.h>

First released in Issue 4, Version 2.

Moved from X/OPEN UNIX extension to BASE.

This function is marked LEGACY.

footer end

December 6, 2001 posix.fail