Debian Codegraph @

texk/ps2pk/bstring.c

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