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
x86: Tune Skylake, Cannonlake and Icelake as Haswell
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
builtins
/
lib
/
stpcpy.c
blob
2c7c8178bab86a1c052af59c36bc0a9dca55a7ce
1
extern
void
abort
(
void
);
2
extern
int
inside_main
;
3
4
__attribute__
((
__noinline__
))
5
char
*
6
stpcpy
(
char
*
dst
,
const char
*
src
)
7
{
8
#ifdef __OPTIMIZE__
9
if
(
inside_main
)
10
abort
();
11
#endif
12
13
while
(*
src
!=
0
)
14
*
dst
++ = *
src
++;
15
16
*
dst
=
0
;
17
return
dst
;
18
}