don't truncate lines, don't allow tabs to back up (I think this is tested!)
[unix-history] / usr / src / lib / libc / string / strrchr.c
CommitLineData
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 9static 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
14char *
6c6b7ee3 15strrchr(p, ch)
47de2f79 16 char *p, ch;
53712a56 17{
47de2f79 18 return(rindex(p, ch));
53712a56 19}