Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
llvm-gcc-4.0
/
gcc
/
config
/
memset.c
blob: 3e7025ee39443990b016a56f51aa1c2dbb63c6cd [
file
] [
log
] [
blame
]
/* Public domain. */
#include
<stddef.h>
void
*
memset
(
void
*
dest
,
int
val
,
size_t
len
)
{
unsigned
char
*
ptr
=
dest
;
while
(
len
--
>
0
)
*
ptr
++
=
val
;
return
dest
;
}