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

  1. @node strpbrk, string
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <string.h>
  6.  
  7. char *strpbrk(const char *s1, const char *set);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function finds the first character in @var{s1} that matches any
  13. character in @var{set}.
  14.  
  15. @subheading Return Value
  16.  
  17. A pointer to the first match, or @code{NULL} if none are found.
  18.  
  19. @subheading Example
  20.  
  21. @example
  22. if (strpbrk(command, "<>|"))
  23.   do_redirection();
  24. @end example
  25.  
  26.