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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
builtins
/
string-3-lib.c
blob
d5326ffeb2bd2b135718b1631040e9147523ca5c
1
extern
int
inside_main
;
2
3
void
*
4
memset
(
void
*
dst
,
int
c
,
__SIZE_TYPE__ n
)
5
{
6
/* Single-byte memsets should be done inline when optimisation
7
is enabled. */
8
#ifdef __OPTIMIZE__
9
if
(
inside_main
&&
n
<
2
)
10
abort
();
11
#endif
12
13
while
(
n
-- !=
0
)
14
n
[(
char
*)
dst
] =
c
;
15
16
return
dst
;
17
}