xref: /csrg-svn/lib/libc/string/strchr.c (revision 42635)
124155Skre /*
234619Sbostic  * Copyright (c) 1988 Regents of the University of California.
334619Sbostic  * All rights reserved.
424155Skre  *
5*42635Sbostic  * %sccs.include.redist.c%
624155Skre  */
724155Skre 
834619Sbostic #if defined(LIBC_SCCS) && !defined(lint)
9*42635Sbostic static char sccsid[] = "@(#)strchr.c	5.6 (Berkeley) 06/01/90";
1034619Sbostic #endif /* LIBC_SCCS and not lint */
1124155Skre 
1242073Sbostic #include <string.h>
1334619Sbostic 
1424155Skre char *
strchr(p,ch)1534619Sbostic strchr(p, ch)
1642073Sbostic 	char *p, ch;
1724155Skre {
1842073Sbostic 	return(index(p, ch));
1924155Skre }
20