repo.or.cz
/
maemo-rb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Prepare new maemo release
[maemo-rb.git]
/
apps
/
plugins
/
lua
/
strpbrk.c
blob
1e0491f779c59805a5995924ecd51e88f1d0e72a
1
#include
"rocklibc.h"
2
3
#undef strpbrk
4
char
*
strpbrk
(
const char
*
s
,
const char
*
accept
) {
5
register
int
i
,
l
=
strlen
(
accept
);
6
for
(; *
s
;
s
++)
7
for
(
i
=
0
;
i
<
l
;
i
++)
8
if
(*
s
==
accept
[
i
])
9
return
(
char
*)
s
;
10
return
0
;
11
}