void riack_free_string_list(struct RIACK_CLIENT* client, RIACK_STRING_LIST* strings) { size_t i; for (i=0; i<strings->string_count; ++i) { riack_free_string(client, &(strings->strings[i])); } free(strings->strings); }
void riack_free_string_p(riack_client* client, riack_string** string) { if (string != 0 && *string != 0) { riack_free_string(client, *string); RFREE(client, *string); *string = 0; } }
void riack_free_string_linked_list(struct RIACK_CLIENT* client, struct RIACK_STRING_LINKED_LIST** strings) { struct RIACK_STRING_LINKED_LIST *current, *next; current = *strings; while (current != 0) { next = current->next; riack_free_string(client, ¤t->string); RFREE(client, current); current = next; } *strings = 0; }
void riack_free_string_linked_list_p(riack_client *client, riack_string_linked_list **strings) { riack_string_linked_list *current, *next; current = *strings; while (current != 0) { next = current->next; riack_free_string(client, ¤t->string); RFREE(client, current); current = next; } *strings = 0; }
void riack_free_string_list_p(riack_client *client, riack_string_list **strings) { size_t i; if (!strings) { return; } for (i=0; i<(*strings)->string_count; ++i) { riack_free_string(client, &((*strings)->strings[i])); } RFREE(client, (*strings)->strings); RFREE(client, *strings) }