Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
VENTI-MEM(3)		   Library Functions Manual		  VENTI-MEM(3)

NAME
       vtbrk,  vtmalloc, vtmallocz, vtrealloc, vtstrdup, vtfree	- error-check-
       ing memory allocators

SYNOPSIS
       #include	<u.h>
       #include	<libc.h>
       #include	<venti.h>

       void* vtbrk(int size)

       void* vtmalloc(int size)

       void* vtmallocz(int size)

       void* vtrealloc(void *ptr, int size)

       char* vtstrdup(char *s)

       void  vtfree(void *ptr)

DESCRIPTION
       These routines allocate and free	memory.	 On failure, they print	an er-
       ror message and call sysfatal(3).  They do not return.

       Vtbrk  returns  a  pointer  to a	new, permanently allocated block of at
       least size bytes.

       Vtmalloc, vtrealloc, and	vtstrdup are like malloc, realloc, and strdup,
       but,  as	noted above, do	not return on error.  Vtmallocz	is like	vtmal-
       loc but zeros the block before returning	it.  Memory allocated with all
       four should be freed with vtfree	when no	longer needed.

SOURCE
       /usr/local/plan9/src/libventi

SEE ALSO
       venti(3)

								  VENTI-MEM(3)

NAME | SYNOPSIS | DESCRIPTION | SOURCE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=venti-mem&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help