MathcadAllocate
This function allocates a memory block of a given size (in bytes) of memory for complex scalars and strings inside MyCFunction.
char * MathcadAllocate(size)
unsigned int size;
Parameter
Description
size
Size (in bytes) of memory block to allocate. Must be non-zero.
Return Value
Returns a pointer to the storage space. To get a pointer to a type other than char, use a type cast on the return value.
Returns NULL if the allocation failed or if size is equal to 0.
Additional Information
Free memory using MathcadFree. To allocate memory for arrays, use MathcadArrayAllocate.
Was this helpful?