]>
diplodocus.org Git - nmh/blob - sbr/r1bindex.c
56f8c6a18d8072fe12722eca445cffd33ed5cadd
2 * r1bindex.c -- Given a string and a character, return a pointer
3 * -- to the right of the rightmost occurrence of the
4 * -- character. If the character doesn't occur, the
5 * -- pointer will be at the beginning of the string.
7 * This code is Copyright (c) 2002, by the authors of nmh. See the
8 * COPYRIGHT file in the root directory of the nmh distribution for
9 * complete copyright information.
15 r1bindex(char *str
, int chr
)
20 return str
; /* Match old behaviour, don't know if it's used. */
22 r
= strrchr(str
, chr
);