home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 109.lha / PD_C / lib / rindex.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-11-20  |  296 b   |  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.