Gitiles
Code Review
Sign In
review.coreboot.org
/
coreboot
/
6f9786bbccfca6fa0b59cba726f79b2db6f0edcd
/
.
/
src
/
lib
/
memset.c
blob: fc87c8a7bd13d5a8bb2ed73f3b6c0f36d5aed89e [
file
] [
log
] [
blame
]
/* SPDX-License-Identifier: GPL-2.0-only */
#include
<string.h>
void
*
memset
(
void
*
s
,
int
c
,
size_t
n
)
{
int
i
;
char
*
ss
=
(
char
*)
s
;
for
(
i
=
0
;
i
<
(
int
)
n
;
i
++)
ss
[
i
]
=
c
;
return
s
;
}