logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

alloca - <alloca.h>: Allocate space in the stack

Author

       Generated automatically by Doxygen for AVR-LibC from the source code.

AVR-LibC                                          Version 2.2.1                                     alloca(3avr)

Detailed Description

Function Documentation

void*alloca(size_t__size)[extern]
       Allocate __size bytes of space in the stack frame of the caller. This temporary space is automatically
       freed when the function that called alloca() returns to its caller. AVR-LibC defines the alloca() as a
       macro, which is translated into the inlined __builtin_alloca() function. The fact that the code is
       inlined, means that it is impossible to take the address of this function, or to change its behaviour by
       linking with a different library.

       Returns
           alloca() returns a pointer to the beginning of the allocated space. If the allocation causes stack
           overflow, program behaviour is undefined.

       Warning
           Avoid use alloca() inside the list of arguments of a function call.

Name

       alloca - <alloca.h>: Allocate space in the stack

Synopsis

Functions
       void * alloca (size_t __size)

See Also