xref: /csrg-svn/lib/libc/string/strchr.c (revision 42073)
124155Skre /*
234619Sbostic  * Copyright (c) 1988 Regents of the University of California.
334619Sbostic  * All rights reserved.
424155Skre  *
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.
1624155Skre  */
1724155Skre 
1834619Sbostic #if defined(LIBC_SCCS) && !defined(lint)
19*42073Sbostic static char sccsid[] = "@(#)strchr.c	5.5 (Berkeley) 05/15/90";
2034619Sbostic #endif /* LIBC_SCCS and not lint */
2124155Skre 
22*42073Sbostic #include <string.h>
2334619Sbostic 
2424155Skre char *
2534619Sbostic strchr(p, ch)
26*42073Sbostic 	char *p, ch;
2724155Skre {
28*42073Sbostic 	return(index(p, ch));
2924155Skre }
30