home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d110 / pdc.lha / Pdc / lib / rindex.c < prev    next >
C/C++ Source or Header  |  1987-10-28  |  296b  |  16 lines

  1. /*
  2.  * rindex - find last occurrence of a character in a string
  3.  */
  4.  
  5. #define  NULL      0
  6.  
  7. char *                                 /* found char, or NULL if none */
  8. rindex(s, charwanted)
  9. CONST char *s;
  10. char charwanted;
  11. {
  12.          extern char *strrchr();
  13.  
  14.          return(strrchr(s, charwanted));
  15. }
  16.