Home | History | Annotate | Line # | Download | only in libiberty
      1  1.1  christos /* Stub implementation of (obsolete) rindex(). */
      2  1.1  christos 
      3  1.1  christos /*
      4  1.1  christos 
      5  1.1  christos @deftypefn Supplemental char* rindex (const char *@var{s}, int @var{c})
      6  1.1  christos 
      7  1.1  christos Returns a pointer to the last occurrence of the character @var{c} in
      8  1.1  christos the string @var{s}, or @code{NULL} if not found.  The use of @code{rindex} is
      9  1.1  christos deprecated in new programs in favor of @code{strrchr}.
     10  1.1  christos 
     11  1.1  christos @end deftypefn
     12  1.1  christos 
     13  1.1  christos */
     14  1.1  christos 
     15  1.1  christos extern char *strrchr (const char *, int);
     16  1.1  christos 
     17  1.1  christos char *
     18  1.1  christos rindex (const char *s, int c)
     19  1.1  christos {
     20  1.1  christos   return strrchr (s, c);
     21  1.1  christos }
     22