# strpbrk function

strpbrk locates characters in a string.

    Library:   string.h

    Prototype: char * strpbrk(const char *string1, const char *string2);

    Syntax:	   char *ptr;
    	   char string1[]="martin was ere";
    	   char string2[]="ea";

    	   ptr=strpbrk(string1, string2);

In this example ptr will be pointing to the first a within martin was ere

## See Also:

- strchr

## Example:

Change field seperators to 'blank'.

MAN PAGE

Top | Master Index | Keywords | Functions