summaryrefslogtreecommitdiff
path: root/Build/source/texk/ps2pk/bstring.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/ps2pk/bstring.c')
-rw-r--r--Build/source/texk/ps2pk/bstring.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/Build/source/texk/ps2pk/bstring.c b/Build/source/texk/ps2pk/bstring.c
new file mode 100644
index 00000000000..250eece830e
--- /dev/null
+++ b/Build/source/texk/ps2pk/bstring.c
@@ -0,0 +1,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