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
* expr.c (expand_expr): Revove bogus conditional.
[official-gcc.git]
/
libiberty
/
memset.c
blob
5f54831e83c468a62ecc2f59c90a50e8615a09f3
1
/* memset
2
This implementation is in the public domain. */
3
4
#include <ansidecl.h>
5
#ifdef __STDC__
6
#include <stddef.h>
7
#else
8
#define size_t unsigned long
9
#endif
10
11
PTR
12
DEFUN
(
memset
, (
dest
,
val
,
len
),
13
PTR dest AND
register
int
val AND
register
size_t
len
)
14
{
15
register
unsigned char
*
ptr
= (
unsigned char
*)
dest
;
16
while
(
len
-- >
0
)
17
*
ptr
++ =
val
;
18
return
dest
;
19
}