diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-08-15 15:38:07 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-08-15 15:38:07 -0400 |
commit | 1f4e410fdcff7cc96c5a0c0fb97172871d0ae347 (patch) | |
tree | f2522eb7b3fe9868934abc2c3bbb8a1eab132878 /src/strings/bzero.c | |
parent | 81c9e19e3dfb3f99f7c16167734257aeca9ac922 (diff) |
implement in terms of <string.h> equivalent
Diffstat (limited to 'src/strings/bzero.c')
-rw-r--r-- | src/strings/bzero.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/strings/bzero.c b/src/strings/bzero.c index 3d15579c..383d55c3 100644 --- a/src/strings/bzero.c +++ b/src/strings/bzero.c @@ -1,8 +1,9 @@ +#include <string.h> #include <strings.h> -void bzero(void*s, size_t n) +void bzero(void* s, size_t n) { - return 0; + (void)memset(s, '\0', n); } /* |