www.delorie.com/djgpp/doc/libc-2.01/libc_618.html   search  
Go to the first, previous, next, last section, table of contents.


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.

Example

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


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997