Download   Online Shop   Red Hat Network
Home  |  Products  |  Shop  |  Services  |  Training  |  Support   
Red Hat Documentation: man pages: man3: Linux Programmer's Manual (3)

Manpage of ALLOCA

ALLOCA

Section: Linux Programmer's Manual (3)
Updated: 29 November 2025
Index  

NAME

alloca - memory allocator  

SYNOPSIS

#include <stdlib.h>

void *alloca( size_t size);  

DESCRIPTION

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

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

CONFORMING TO

There is evidence that the alloca function appeared in 32v, pwb, pwb.2, 3bsd, and 4bsd. There is a man page for it in BSD 4.3. Linux uses the GNU version.  

BUGS

The alloca function is machine dependent.  

SEE ALSO


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
CONFORMING TO
BUGS
SEE ALSO

This document was created by using the manual pages.
Time: 11:58:02 GMT, March 24, 2025

 

 
 
Search for:  on    Powered by Google
Products & Services   :   Download   :   Support   :   Training   :   Partners & Programs
© 2000 Red Hat, Inc. All right reserved.       About Red Hat   :   Legal statement   :   Privacy statement   :   Y2K statement   :   Contact Red Hat