blob: 03aa80966131ef2b1395829957229d3e670ade7b [file] [log] [blame]
Antonio Nino Diaz9eddb1e2018-08-16 14:53:05 +01001/*
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
9void *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}