projects
/
fw
/
pdclib
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
8926cc8e00c76cbbd9e77476b357b09fb84ae738
[fw/pdclib]
/
functions
/
string
/
strpbrk.c
1
/* $Id$ */
2
3
/* Release $Name$ */
4
5
/* strpbrk( const char *, const char * )
6
7
This file is part of the Public Domain C Library (PDCLib).
8
Permission is granted to use, modify, and / or redistribute at will.
9
*/
10
11
#include <string.h>
12
13
char * strpbrk( const char * s1, const char * s2 )
14
{
15
const char * p1 = s1;
16
const char * p2;
17
while ( *p1 )
18
{
19
p2 = s2;
20
while ( *p2 )
21
{
22
if ( *p1 == *p2++ )
23
{
24
return (char *) p1;
25
}
26
}
27
++p1;
28
}
29
return NULL;
30
}