strrchr.3 (557B)
1 .TH strrchr 3 2 .SH NAME 3 strrchr - find the last occurrence of a character in a string 4 .SH SYNOPSIS 5 #include <string.h> 6 7 char *strrchr(const char *s, int c) 8 .SH DESCRIPTION 9 The 10 .BR strrchr () 11 function searches the string pointed to by 12 .I s 13 for the last occurrence of 14 .I c 15 after conversion to char. 16 The terminating null byte is treated as part of the string. 17 .SH RETURN VALUE 18 The 19 .BR strrchr () 20 function returns a pointer to the last matching character, 21 or a null pointer if 22 .I c 23 does not appear in the string. 24 .SH STANDARDS 25 ISO/IEC 9899:1999 Section 7.21.5.5