2008-09-26 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / config / memset.c
blob3e7025ee39443990b016a56f51aa1c2dbb63c6cd
1 /* Public domain. */
2 #include <stddef.h>
4 void *
5 memset (void *dest, int val, size_t len)
7 unsigned char *ptr = dest;
8 while (len-- > 0)
9 *ptr++ = val;
10 return dest;