T_FREE return allocated memory to the heap
ptr
pointer to memory to be freed
None
None
T_FREE uses TutFree to free dynamically allocated memory. T_FREE should only be used to free memory that has been allocated with T_MALLOC, T_CALLOC, T_REALLOC or T_STRDUP.
Unlike the ANSI C function free, T_FREE does not accept null pointers.
T_MALLOC, T_CALLOC, T_REALLOC, T_STRDUP
This example allocates and frees some memory:
T_STR dup_1;/* make a copy of a string */
T_STRDUP(dup_1, "hi there");/* free it right away */
T_FREE(dup_1);
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |