strpbrk.c

The libc implementation

Author

Martin ‘Solar’ Baute

License

Public Domain

Summary
strpbrk.cThe libc implementation
Functions
strpbrkFinds the first character in s1 that occurs in s2

Functions

strpbrk

char * strpbrk(const char *s1,
const char *s2)

Finds the first character in s1 that occurs in s2

Returns a pointer to a character in s1 that occurs in s2

Returns NULL if s1 and s2 do not share any characters

char * strpbrk(const char *s1,
const char *s2)
Finds the first character in s1 that occurs in s2