Version 4 of Tcl_Alloc

Updated 2016-07-15 14:42:58 by aa

Allocate memory using the Tcl library's memory allocation engine. Like malloc, but integrates with the memory command (if that's defined). Pairs up with Tcl_Realloc and Tcl_Free.

Tcl_Alloc and Tcl_Realloc will panic if memory allocation fails. For alternatives that return NULL, use Tcl_AttemptAlloc and Tcl_AttemptRealloc.

See also the manual .