strrchr
find last occurrence of character in string
Synopsis
#include <string.h>
char *strrchr(const char *s1, int c);
Description
The
function returns a pointer to the last occurrence of character
strrchr
in the null-terminated input string
c
Error Conditions
The
function returns a null pointer if
strrchr
Example
#include <string.h>
char *ptr1, *ptr2;
ptr1 = "TESTING";
ptr2 = strrchr(ptr1, 'T');
/* ptr2 points to the second T of TESTING
See Also
memchr,
strchr
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
C/C++ Run-Time Library
.
s1
is not found.
c
*/
3-133
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers