The following functions, macros, and classes are provided in malloc.h:
Name |
Description |
Header File malloc.h Category Memory Routines Prototype void *alloca(size_t size); Description Allocates temporary stack space. alloca allocates size bytes on the stack; the allocated space is automatically freed up when the calling function exits. The use of alloca is not encouraged. In the try-block of a C++ program the alloca function should never be used. If an exception is thrown, any values placed on the stack by alloca will be corrupted. Return Value If enough stack space is available, alloca returns a pointer to the allocated stack area. Otherwise, it returns NULL. Example |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|