Commit | Line | Data |
---|---|---|
f8fb275c | 1 | /*- |
80409bdc KB |
2 | * Copyright (c) 1993 |
3 | * The Regents of the University of California. All rights reserved. | |
f8fb275c KM |
4 | * |
5 | * %sccs.include.redist.c% | |
6 | * | |
80409bdc | 7 | * @(#)bzero.c 8.1 (Berkeley) %G% |
f8fb275c KM |
8 | */ |
9 | ||
10 | /* | |
11 | * This is designed to be small, not fast. | |
12 | */ | |
13 | void | |
14 | bzero(s1, n) | |
15 | void *s1; | |
16 | unsigned n; | |
17 | { | |
18 | register char *t = s1; | |
19 | ||
20 | while (n != 0) { | |
21 | *t++ = 0; | |
22 | n--; | |
23 | } | |
24 | } |