home | help
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)

home | help