(C) 1998 AROS - The Amiga Research OS


NAME
#include <string.h>

char * strpbrk ()

SYNOPSIS
const char * str
const char * accept

FUNCTION
Locate the first occurrence of any character in accept in str.

INPUTS
str
Search this string
accept
Look for these characters

RESULT
A pointer to the first occurence of any character in accept in str or NULL if no character of accept is not found in str.

EXAMPLE
char buffer[64];

strcpy (buffer, "Hello ");

// This returns a pointer to the first l in buffer.
strpbrk (buffer, "lo");

// This returns NULL
strpbrk (buffer, "xyz");
SEE ALSO
strchr(), strrchr()

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
11.12.1996 aros
New functions