xref: /csrg-svn/lib/libc/string/strrchr.c (revision 42637)
124156Skre /*
234619Sbostic  * Copyright (c) 1988 Regents of the University of California.
334619Sbostic  * All rights reserved.
424156Skre  *
5*42637Sbostic  * %sccs.include.redist.c%
624156Skre  */
724156Skre 
834619Sbostic #if defined(LIBC_SCCS) && !defined(lint)
9*42637Sbostic static char sccsid[] = "@(#)strrchr.c	5.7 (Berkeley) 06/01/90";
1034619Sbostic #endif /* LIBC_SCCS and not lint */
1124156Skre 
1242074Sbostic #include <string.h>
1334619Sbostic 
1424156Skre char *
strrchr(p,ch)1534619Sbostic strrchr(p, ch)
1642074Sbostic 	char *p, ch;
1724156Skre {
1842074Sbostic 	return(rindex(p, ch));
1924156Skre }
20