venti-mem man page on Plan9

Printed from http://www.polarhome.com/service/man/?qf=venti-mem&af=0&tf=2&of=Plan9

VENTI-MEM(2)							  VENTI-MEM(2)

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
       error message and call sysfatal (from perror(2)).  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
       /sys/src/libventi

SEE ALSO
       venti(2)

								  VENTI-MEM(2)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Plan9

List of man pages available for Plan9

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net