www.delorie.com/djgpp/doc/libc/libc_771.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

strpbrk

Syntax

 
#include <string.h>

char *strpbrk(const char *s1, const char *set);

Description

This function finds the first character in s1 that matches any character in set.

Return Value

A pointer to the first match, or NULL if none are found.

Portability

ANSI/ISO C C89; C99
POSIX 1003.2-1992; 1003.1-2001

Example

 
if (strpbrk(command, "<>|"))
  do_redirection();


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004