strv: Add _cleanup_strv_free_erase_ and _cleanup_string_free_erase_
This commit is contained in:
committed by
Lennart Poettering
parent
1602b00853
commit
ab84f5b95e
@@ -35,6 +35,10 @@ char **strv_free(char **l);
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC(char**, strv_free);
|
||||
#define _cleanup_strv_free_ _cleanup_(strv_freep)
|
||||
|
||||
char **strv_free_erase(char **l);
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC(char**, strv_free_erase);
|
||||
#define _cleanup_strv_free_erase_ _cleanup_(strv_free_erasep)
|
||||
|
||||
void strv_clear(char **l);
|
||||
|
||||
char **strv_copy(char * const *l);
|
||||
|
||||
Reference in New Issue
Block a user