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

  1. @node strchr, string
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <string.h>
  6.  
  7. char *strchr(const char *s, int c);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function returns a pointer to the first occurrence of @var{c} in
  13. @var{s}.  Note that if @var{c} is @code{NULL}, this will return a
  14. pointer to the end of the string. 
  15.  
  16. @subheading Return Value
  17.  
  18. A pointer to the character, or @code{NULL} if it wasn't found. 
  19.  
  20. @subheading Example
  21.  
  22. @example
  23. char *slash = strchr(filename, '/');
  24. @end example
  25.  
  26.