*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> alloca (3)              



NAME    [Toc]    [Back]

     alloca -- memory allocator

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <stdlib.h>

     void *
     alloca(size_t size);

DESCRIPTION    [Toc]    [Back]

     The alloca() function allocates size bytes of space in the stack frame of
     the caller.  This temporary space is automatically freed on return.

RETURN VALUES    [Toc]    [Back]

     The alloca() function returns a pointer to the beginning of the allocated
     space.  If the allocation failed, a NULL pointer is returned.

SEE ALSO    [Toc]    [Back]

     brk(2), calloc(3), getpagesize(3), malloc(3), realloc(3)

HISTORY    [Toc]    [Back]

     The alloca() function appeared in Version 32V AT&T UNIX.

BUGS    [Toc]    [Back]

     The alloca() function is machine and compiler dependent; its use is discouraged.

FreeBSD 5.2.1			 June 4, 1993			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
mallopt Tru64 Provide a memory allocator
free NetBSD kernel memory allocator
malloc OpenBSD kernel memory allocator
arealloc Tru64 arena memory allocator
amallopt Tru64 arena memory allocator
FREE NetBSD kernel memory allocator
calloc Tru64 Provide a memory allocator
free Tru64 Provide a memory allocator
mallinfo Tru64 Provide a memory allocator
realloc Tru64 Provide a memory allocator
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service