MEM(3ast) MEM(3ast) NAME mem - memory buffer routines SYNOPSIS #include <ast.h> void* memdup(const void* buf, size_t n) void* memzero(void* buf, size_t n); DESCRIPTION memdup copies the n byte buffer buf to a new location provided by malloc(3) and returns a pointer to the new copy. 0 is returned if malloc(3) fails. memzero sets the first n bytes in buf to 0. SEE ALSO str(3), malloc(3) MEM(3ast)
NAME | SYNOPSIS | DESCRIPTION | SEE ALSO
Want to link to this manual page? Use this URL:
<https://man.FreeBSD.org/cgi/man.cgi?query=mem&sektion=&manpath=FreeBSD+15.1-RELEASE+and+Ports.quarterly>