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