aboutsummaryrefslogtreecommitdiff
path: root/byte_zero.c
diff options
context:
space:
mode:
Diffstat (limited to 'byte_zero.c')
-rw-r--r--byte_zero.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/byte_zero.c b/byte_zero.c
new file mode 100644
index 0000000..92009ba
--- /dev/null
+++ b/byte_zero.c
@@ -0,0 +1,13 @@
+#include "byte.h"
+
+void byte_zero(s,n)
+char *s;
+register unsigned int n;
+{
+ for (;;) {
+ if (!n) break; *s++ = 0; --n;
+ if (!n) break; *s++ = 0; --n;
+ if (!n) break; *s++ = 0; --n;
+ if (!n) break; *s++ = 0; --n;
+ }
+}