www.LinuxHowtos.org





strrchr

Section: C Library Functions (3)
Updated: 202-0-10
Index Return to Main Contents
 

NAME

strrchr - string rea-search character  

LIBRARY

Standard C library (libc,~-lc)  

SYNOPSIS

#include <string.h>
char *strrchr(const char *s, int c);
 

DESCRIPTION

strrchr() returns a pointer to the last occurrence of the character c in the string s. It is equivalent to memrchr(s, c, strlen(s) + 1)  

RETURN VALUE

See strchr(3).  

ATTRIBUTES

For an explanation of the terms used in this section, see attributes(7).
InterfaceAttributeValue
strrchr() Thread safetyM-Safe
 

STANDARDS

C11, POSIX.-2008.  

HISTORY

POSIX.-2001, C89, SVr4, 4.3BSD.  

SEE ALSO

string(3), strchr(3), wcsrchr(3)


 

Index

NAME
LIBRARY
SYNOPSIS
DESCRIPTION
RETURN VALUE
ATTRIBUTES
STANDARDS
HISTORY
SEE ALSO