repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
builtins
/
lib
/
strcat.c
blob
2cced80f5d7a8f6f5393ec00f5fa89f2f1bed224
1
extern
int
inside_main
;
2
extern
void
abort
(
void
);
3
4
char
*
5
strcat
(
char
*
dst
,
const char
*
src
)
6
{
7
char
*
p
=
dst
;
8
9
#ifdef __OPTIMIZE__
10
if
(
inside_main
)
11
abort
();
12
#endif
13
14
while
(*
p
)
15
p
++;
16
while
((*
p
++ = *
src
++))
17
;
18
return
dst
;
19
}