STRRCHR

Section: C Library Functions (3)
Index Return to Main Contents

BSD mandoc
 

NAME

strrchr - locate character in string  

SYNOPSIS

Fd #include <string.h> Ft char * Fn strrchr const char *s int c  

DESCRIPTION

The Fn strrchr function locates the last occurrence of Fa c (converted to a char) in the string Fa s . If Fa c is `\0' , Fn strrchr locates the terminating `\0'  

RETURN VALUES

The Fn strrchr function returns a pointer to the character, or a null pointer if Fa c does not occur anywhere in Fa s .  

SEE ALSO

index(3), memchr(3), rindex(3), strchr(3), strcspn(3), strpbrk(3), strsep(3), strspn(3), strstr(3), strtok(3)  

STANDARDS

The Fn strrchr function conforms to St -ansiC .


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
SEE ALSO
STANDARDS

This document was created by man2html, using the manual pages.
Time: 15:52:52 GMT, January 15, 2023