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
gcc/:
[official-gcc.git]
/
libgcc
/
memset.c
blob
3e7025ee39443990b016a56f51aa1c2dbb63c6cd
1
/* Public domain. */
2
#include <stddef.h>
3
4
void
*
5
memset
(
void
*
dest
,
int
val
,
size_t
len
)
6
{
7
unsigned char
*
ptr
=
dest
;
8
while
(
len
-- >
0
)
9
*
ptr
++ =
val
;
10
return
dest
;
11
}