iPXE
Macros
alloca.h File Reference

Temporary memory allocation. More...

#include <stdint.h>

Go to the source code of this file.

Macros

#define alloca(size)   __builtin_alloca ( size )
 Allocate temporary memory from the stack. More...
 

Detailed Description

Temporary memory allocation.

Definition in file alloca.h.

Macro Definition Documentation

◆ alloca

#define alloca (   size)    __builtin_alloca ( size )

Allocate temporary memory from the stack.

Parameters
sizeSize to allocate
Return values
ptrAllocated memory

This memory will be freed automatically when the containing function returns. There are several caveats regarding use of alloca(); use it only if you already know what they are.

Definition at line 23 of file alloca.h.