1 /*===-- memset.c ----------------------------------------------------------===//
2 //
3 // The KLEE Symbolic Virtual Machine
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===*/
9
10 #include <stdlib.h>
11
memset(void * dst,int s,size_t count)12 void *memset(void *dst, int s, size_t count) {
13 char *a = dst;
14 while (count-- > 0)
15 *a++ = s;
16 return dst;
17 }
18