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