repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
builtins
/
lib
/
strpbrk.c
blob
f6bb03210205ace361e56cc8877fad59bf253370
1
extern
void
abort
(
void
);
2
extern
int
inside_main
;
3
4
char
*
5
strpbrk
(
const char
*
s1
,
const char
*
s2
)
6
{
7
const char
*
p
;
8
#ifdef __OPTIMIZE__
9
if
(
inside_main
)
10
abort
();
11
#endif
12
while
(*
s1
)
13
{
14
for
(
p
=
s2
; *
p
;
p
++)
15
if
(*
s1
== *
p
)
16
return
(
char
*)
s1
;
17
s1
++;
18
}
19
return
0
;
20
}