1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
/* * memset --- initialize memory * * We supply this routine for those systems that aren't standard yet. */ void * memset(dest, val, l) void *dest; int val; size_t l; { char *ret = dest; char *d = dest; while (l--) *d++ = val; return ((void *) ret); } |