Mark Dykes | ad5ab07 | 2020-08-19 19:11:33 +0000 | [diff] [blame] | 1 | /* |
2 | * Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved. | ||||
3 | * | ||||
4 | * SPDX-License-Identifier: BSD-3-Clause | ||||
5 | */ | ||||
6 | |||||
7 | #include <stddef.h> | ||||
8 | #include <string.h> | ||||
9 | |||||
10 | void *memset(void *dst, int val, size_t count) | ||||
11 | { | ||||
12 | char *ptr = dst; | ||||
13 | |||||
14 | while (count--) | ||||
15 | *ptr++ = val; | ||||
16 | |||||
17 | return dst; | ||||
18 | } |