Previous Page: CPXlpreadFirst PageNext Page: CPXmbasewrite

CPXmalloc


Description

The routine CPXmalloc() is used to allocate memory on the system heap that is managed by the CPLEX Callable Library. It has the same semantics as the standard C library function malloc(). Note that memory allocated by CPXmalloc() should be freed by calling CPXfree().

Return Value

The routine returns a pointer to a block of allocated memory, or NULL if no memory is available.

Synopsis

CPXVOIDptr CPXmalloc (size_t size);

Arguments


size_t size
The number of bytes to allocate.

Example

p = CPXmalloc (10);

Previous Page: CPXlpreadFirst PageNext Page: CPXmbasewrite