]>
Commit | Line | Data |
---|---|---|
6599da04 JM |
1 | /* Portable version of bzero for systems without it. |
2 | This function is in the public domain. */ | |
3 | ||
4 | /* | |
6599da04 | 5 | |
aaa5f039 | 6 | @deftypefn Supplemental void bzero (char *@var{mem}, int @var{count}) |
6599da04 | 7 | |
aaa5f039 DD |
8 | Zeros @var{count} bytes starting at @var{mem}. Use of this function |
9 | is deprecated in favor of @code{memset}. | |
6599da04 | 10 | |
aaa5f039 | 11 | @end deftypefn |
6599da04 JM |
12 | |
13 | */ | |
14 | ||
29138797 KG |
15 | #include <stddef.h> |
16 | ||
17 | extern void *memset(void *, int, size_t); | |
6599da04 JM |
18 | |
19 | void | |
29138797 | 20 | bzero (void *to, size_t count) |
6599da04 | 21 | { |
29138797 | 22 | memset (to, 0, count); |
6599da04 | 23 | } |