124156Skre /* 234619Sbostic * Copyright (c) 1988 Regents of the University of California. 334619Sbostic * All rights reserved. 424156Skre * 534619Sbostic * Redistribution and use in source and binary forms are permitted 634831Sbostic * provided that the above copyright notice and this paragraph are 734831Sbostic * duplicated in all such forms and that any documentation, 834831Sbostic * advertising materials, and other materials related to such 934831Sbostic * distribution and use acknowledge that the software was developed 1034831Sbostic * by the University of California, Berkeley. The name of the 1134831Sbostic * University may not be used to endorse or promote products derived 1234831Sbostic * from this software without specific prior written permission. 1334831Sbostic * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 1434831Sbostic * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 1534831Sbostic * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 1624156Skre */ 1724156Skre 1834619Sbostic #if defined(LIBC_SCCS) && !defined(lint) 19*42074Sbostic static char sccsid[] = "@(#)strrchr.c 5.5 (Berkeley) 05/15/90"; 2034619Sbostic #endif /* LIBC_SCCS and not lint */ 2124156Skre 2234619Sbostic #ifdef notdef 2334619Sbostic static char sccsid[] = "@(#)rindex.c 5.3 (Berkeley) 6/2/88"; 2434619Sbostic #endif 2534619Sbostic 26*42074Sbostic #include <string.h> 2734619Sbostic 2824156Skre char * 2934619Sbostic strrchr(p, ch) 30*42074Sbostic char *p, ch; 3124156Skre { 32*42074Sbostic return(rindex(p, ch)); 3324156Skre } 34