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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
builtins
/
lib
/
stpcpy.c
blob
e6e1a6dae9cf4842c0ad8c7cb13e347ff85e57bd
1
extern
void
abort
(
void
);
2
extern
int
inside_main
;
3
4
char
*
5
stpcpy
(
char
*
dst
,
const char
*
src
)
6
{
7
#ifdef __OPTIMIZE__
8
if
(
inside_main
)
9
abort
();
10
#endif
11
12
while
(*
src
!=
0
)
13
*
dst
++ = *
src
++;
14
15
*
dst
=
0
;
16
return
dst
;
17
}