Antonio Nino Diaz | 9eddb1e | 2018-08-16 14:53:05 +0100 | [diff] [blame] | 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 | } |