Back to index

tetex-bin  3.0
bstring.c
Go to the documentation of this file.
00001 /*
00002  * A simple memset() in case your ANSI C does not provide it
00003  */
00004 
00005 #include "c-auto.h"
00006 
00007 #if !defined(HAVE_MEMSET) && !defined(memset)
00008 memset(void *s, int c, int length)
00009 {  char *p = s;
00010   
00011    while (length--) *(p++) = c;
00012 }
00013 #endif