Commit | Line | Data |
---|---|---|
117fa619 | 1 | /* |
6c6b7ee3 KB |
2 | * Copyright (c) 1988 Regents of the University of California. |
3 | * All rights reserved. | |
117fa619 | 4 | * |
019bea33 | 5 | * %sccs.include.redist.c% |
117fa619 RE |
6 | */ |
7 | ||
6c6b7ee3 | 8 | #if defined(LIBC_SCCS) && !defined(lint) |
019bea33 | 9 | static char sccsid[] = "@(#)strchr.c 5.6 (Berkeley) %G%"; |
6c6b7ee3 KB |
10 | #endif /* LIBC_SCCS and not lint */ |
11 | ||
8c5660d7 | 12 | #include <string.h> |
117fa619 RE |
13 | |
14 | char * | |
6c6b7ee3 | 15 | strchr(p, ch) |
8c5660d7 | 16 | char *p, ch; |
117fa619 | 17 | { |
8c5660d7 | 18 | return(index(p, ch)); |
117fa619 | 19 | } |