to cyberson: the memset and the loop are very closely like solutions. The actually difference, is that memset
usually is optimized with assembly, and/or loop unrolling techniques, but a simplistic, not ansi-correct, not bad-arg passing proof, implementation would be:
void memset(void *x, int...