1 2 3 4 5 6 7 8
void * memset(void *s, int c, long unsigned n) { unsigned i; char *pDest = (char *)s; for (i = 0; i < n; ++i) pDest[i] = (char)c; return s; }