Memory Allocation (Windows Embedded CE 6.0)


Use memory allocation routines to allocate, free, and reallocate memory.

For detailed reference information about the CRT functions, see Alphabetical Function Reference (CRT).

Routine Use


Allocates memory on the stack.

This function is deprecated because a more secure version, _malloca, is available.


Allocates storage for array, initializing every byte in allocated block to 0


Frees allocated block


Frees a block allocated by _malloca.


Allocates block of memory from heap


Allocates memory on the stack.

This function is a more secure version of _alloca.


Returns size of allocated block


Reallocates block to new size


A combination of realloc and calloc. Reallocates an array in memory and initializes its elements.


Sets file translation mode

See Also


Run-Time Routines by Category

Other Resources

C/C++ Libraries for Windows Embedded CE
What's New in the C Run-Time Library