projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* sort.c (backtrace_qsort): Use middle element as pivot.
[gcc.git]
/
libgcc
/
memset.c
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
}