Frees memory allocated by the trc_read, trc_find, trc_loginfo, or trc_hookname subroutine.
libtrace.a
#include <sys/libtrace.h>
int trc_free (parmp)
void *parmp;
A log handle, trc_loghandle_t, must be freed using the trc_close subroutine.
For example, trc_free(&trc_data), where trc_data is of type trc_read_t, frees the storage referenced by the trc_data structure, but does not free trc_data since it must be pre-allocated by the user.
Item | Description |
---|---|
parmp | Points to a structure as described above. |
Upon successful completion, the trc_free subroutine returns 0.
Item | Description |
---|---|
EINVAL | The parmp parameter points to an unsupported data type. |