home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / string / strrchr.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  437 b   |  25 lines

  1. @node strrchr, string
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <string.h>
  6.  
  7. char *strrchr(const char *s1, int c);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function finds the last occurrence of @code{c} in @code{s1}.
  13.  
  14. @subheading Return Value
  15.  
  16. A pointer to the last match, or @code{NULL} if the character isn't in
  17. the string. 
  18.  
  19. @subheading Example
  20.  
  21. @example
  22. char *last_slash = strrchr(filename, '/');
  23. @end example
  24.  
  25.