summaryrefslogtreecommitdiff
path: root/Build/source/texk/ps2pkm/bstring.c
blob: 250eece830e7f6c285fe6940982d2eeb33b4212c (plain)
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