freebsd-src/lib/libc/riscv/string/bzero.c
Robert Clausecker b5dbf3de56 libc/riscv64: implement bcopy() and bzero() through memcpy() and memset()
This picks up the accelerated string functions written by
strajabot@.

Event:		Google Summer of Code 2024
MFC after:	1 month
MFC to:		stable/15
See also:	79e01e7e64
Approved by:	markj (mentor)
Differential Revision:	https://reviews.freebsd.org/D53248
2025-10-31 13:48:00 +01:00

14 lines
141 B
C

/*-
* Public domain.
*/
#include <string.h>
#undef bzero /* _FORTIFY_SOURCE */
void
bzero(void *b, size_t len)
{
memset(b, 0, len);
}