bd52d17906
too large to list, but see: http://gcc.gnu.org/gcc-3.4/changes.html http://gcc.gnu.org/gcc-4.0/changes.html http://gcc.gnu.org/gcc-4.1/changes.html for the details.
12 lines
177 B
C
12 lines
177 B
C
/* Public domain. */
|
|
#include <stddef.h>
|
|
|
|
void *
|
|
memset (void *dest, int val, size_t len)
|
|
{
|
|
unsigned char *ptr = dest;
|
|
while (len-- > 0)
|
|
*ptr++ = val;
|
|
return dest;
|
|
}
|