● After the function operation,list
cannot be used as an input argument in list functions.
● The function does not free the entire memory space used by the list when the list members occupy more than a single memory location. For example, with strings only the pointers to the strings are destroyed. (Compare withstm_list_purge
.)
Input/Outputstm_list list;
int status;
.
.
if (stm_list_destroy (list, &status))
printf ("list destroyed");
.
.