1*61193Sbostic.\" Copyright (c) 1990, 1991, 1993 2*61193Sbostic.\" The Regents of the University of California. All rights reserved. 341980Sbostic.\" 441980Sbostic.\" This code is derived from software contributed to Berkeley by 550326Sbostic.\" Chris Torek and the American National Standards Committee X3, 650326Sbostic.\" on Information Processing Systems. 750326Sbostic.\" 841980Sbostic.\" %sccs.include.redist.man% 941980Sbostic.\" 10*61193Sbostic.\" @(#)strrchr.3 8.1 (Berkeley) 06/04/93 1141980Sbostic.\" 1248350Scael.Dd 1348350Scael.Dt STRRCHR 3 1448350Scael.Os 1548350Scael.Sh NAME 1648350Scael.Nm strrchr 1748350Scael.Nd locate character in string 1848350Scael.Sh SYNOPSIS 1948350Scael.Fd #include <string.h> 2048350Scael.Ft char * 2148350Scael.Fn strrchr "const char *s" "int c" 2248350Scael.Sh DESCRIPTION 2348350ScaelThe 2448350Scael.Fn strrchr 2548350Scaelfunction 2648350Scaellocates the last occurrence of 2748350Scael.Fa c 2848350Scael(converted to a char) 2948350Scaelin the string 3048350Scael.Fa s . 3148350ScaelIf 3248350Scael.Fa c 3348350Scaelis 3448350Scael.Ql \e0 , 3548350Scael.Fn strrchr 3648350Scaellocates the terminating 3748350Scael.Ql \e0 . 3848350Scael.Sh RETURN VALUES 3948350ScaelThe 4048350Scael.Fn strrchr 4148350Scaelfunction 4248350Scaelreturns a pointer to the character, 4348350Scaelor a null 4448350Scaelpointer if 4548350Scael.Fa c 4641980Sbosticdoes not occur anywhere in 4748350Scael.Fa s . 4848350Scael.Sh SEE ALSO 4948350Scael.Xr index 3 , 5048350Scael.Xr memchr 3 , 5148350Scael.Xr rindex 3 , 5248350Scael.Xr strchr 3 , 5348350Scael.Xr strcspn 3 , 5448350Scael.Xr strpbrk 3 , 5548350Scael.Xr strsep 3 , 5648350Scael.Xr strspn 3 , 5748350Scael.Xr strstr 3 , 5848350Scael.Xr strtok 3 5948350Scael.Sh STANDARDS 6048350ScaelThe 6148350Scael.Fn strrchr 6248350Scaelfunction 6348350Scaelconforms to 6448350Scael.St -ansiC . 65