xref: /rk3399_ARM-atf/lib/libc/memset.c (revision 4661abc7c44926ac34ce96deb9e332a6804a2520)
1 /*
2  * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <stddef.h>
8 
9 void *memset(void *dst, int val, size_t count)
10 {
11 	char *ptr = dst;
12 
13 	while (count--)
14 		*ptr++ = val;
15 
16 	return dst;
17 }
18