1 2 3 4 5 6 7 8 9
#include <strings.h> void bzero(void * s, size_t n) { char *t = s; while (n != 0) { *t++ = 0; n--; } }