ALLOCA

Section: C Library Functions (3)
Index Return to Main Contents

BSD mandoc
BSD 4  

NAME

alloca - memory allocator  

SYNOPSIS

Fd #include <stdlib.h> Ft void * Fn alloca size_t size  

DESCRIPTION

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

RETURN VALUES

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

SEE ALSO

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

BUGS

The Fn alloca function is machine dependent; its use is discouraged.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
SEE ALSO
BUGS

This document was created by man2html, using the manual pages.
Time: 19:41:55 GMT, December 25, 2022