# Introduce common \`bzero\` libc implementation\. \(\#23812\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/2c241b263cf165cdde4b3b1df3ce551d915ee476)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 2c241b263cf165cdde4b3b1df3ce551d915ee476

Requested commit: 2c241b263cf165cdde4b3b1df3ce551d915ee476

Commit: 2c241b263cf165cdde4b3b1df3ce551d915ee476

Tree: 881e74dc9d0408705a082cd26c2178602c52efb6

Author: David

Committer: GitHub

## Message

```
Introduce common `bzero` libc implementation. (#23812)

* Introduce common `bzero` libc implementation.

* Update test name according to review

Co-authored-by: Linus Groh <mail@linusgroh.de>

* address code review

- import common implementation when musl or wasi is included
- don't use `c_builtins`, use `@memset`

* bzero calling conv to .c

* Apply review

Co-authored-by: Veikka Tuominen <git@vexu.eu>

---------

Co-authored-by: Linus Groh <mail@linusgroh.de>
Co-authored-by: Veikka Tuominen <git@vexu.eu>
```

## Parents

- [85431e745cda668bb4559b2839834d4899141e2e](https://git.cafe/gitcafe/zig/commit/85431e745cda668bb4559b2839834d4899141e2e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/2c241b263cf165cdde4b3b1df3ce551d915ee476?format=markdown)
