/** * The memset() function fills the first n bytes of the memory area pointed to by s with the constant byte c. * @param s * @param c * @param n * @return */ 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; }