![]()  | 
![]()  | 
![]()  | 
![]()  | 
![]()  | 
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. | 
Find the last occurrence of a character in a string
#include <strings.h>
char *rindex( const char *s, 
              int c );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The rindex() function returns a pointer to the last occurrence of the character c in the string s.
A pointer to the character, or NULL if the character doesn't occur in the string.
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | Yes | 
| Signal handler | Yes | 
| Thread | Yes | 
![]()  | 
![]()  | 
![]()  | 
![]()  |