void *UTmalloc (int size)
Allocate a block of memory
This routine invokes the system routine malloc to allocate a block of memory.
Unlike the system routine malloc, this routine uses a signed value for
the size of the block of memory requested. If the size requested is less
than or equal to zero, a NULL pointer is returned. This is not an error
condition. However, if the system routine malloc returns an error, an
error message is printed and execution is terminated. The block of memory
allocated can be freed up using UTfree.
<- void *UTmalloc
Pointer to the allocated memory. This should be cast to the appropriate
-> int size
Size of the memory block to be allocated. This is a signed value. If
size is less than or equal to zero, a NULL pointer is returned.
Author / revision
/ Revision 1.10 2003/05/09
Main Index libtsp