feat: introduce sanitizers

had to fix some things
This commit is contained in:
2024-08-26 19:35:05 +02:00
parent 0f1aa982f4
commit cfffa43428
6 changed files with 57 additions and 13 deletions

View File

@ -48,4 +48,11 @@ void remove_strlist_node(strlist_node* node);
// This function is not threadsafe.
void clear_strlist(strlist_node* root);
// Convert a strlist to an array of strings.
// Note that this copies the strlist, you still have to free it.
// The array itself is NULL terminated, enabling you to iterate to the end.
// The array should be free'd, as well as each of the entries.
// Returns NULL if the provided strlist is empty.
char** strlist_to_array(strlist_node* root);
#endif