1 2 3 4 5 6 7 8 9 10 11 12 13
/* * A simple memset() in case your ANSI C does not provide it */ #include "c-auto.h" #if !defined(HAVE_MEMSET) && !defined(memset) memset(void *s, int c, int length) { char *p = s; while (length--) *(p++) = c; } #endif