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