9srv Manual Collection/plan9/venti-mem(2) | 9srv Manual Collection/plan9/venti-mem(2) |
---|
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)
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 vtmalloc but zeros the block before returning it. Memory allocated with all four should be freed with vtfree when no longer needed.
9srv Manual Collection/plan9/venti-mem(2) | Rev: Mon Mar 14 19:40:51 GMT 2011 |