summaryrefslogtreecommitdiffstats
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 @@
1#include "byte.h"
2
3void byte_zero(s,n)
4char *s;
5register unsigned int n;
6{
7 for (;;) {
8 if (!n) break; *s++ = 0; --n;
9 if (!n) break; *s++ = 0; --n;
10 if (!n) break; *s++ = 0; --n;
11 if (!n) break; *s++ = 0; --n;
12 }
13}