Name
strrchr function — Locates rightmost occurrence of a character
Synopsis
const char* strrchr(const char* str, int c) char* strrchr( char* str, int c)
The strrchr
function
returns a pointer to the last (rightmost) occurrence of c
(converted to unsigned
char
) in the null-terminated string
s
. If c
does not appear in s
, NULL
is returned.
See Also
memchr function, strchr function, wcsrchr
in <cwchar>
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.