X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Futils_array.h;h=53670c5abdd16bec0a6e884acadf66ff1e937065;hb=da4f69af961e91db6605a451dc3040c82c1a7344;hp=917bea95e9cee0b142b2809cf1e059f416e7b63c;hpb=2c85f876c1b9d5c161694cfb03cf20773b74c844;p=collection4.git diff --git a/src/utils_array.h b/src/utils_array.h index 917bea9..53670c5 100644 --- a/src/utils_array.h +++ b/src/utils_array.h @@ -6,10 +6,17 @@ typedef struct str_array_s str_array_t; str_array_t *array_create (void); void array_destroy (str_array_t *a); + int array_append (str_array_t *a, const char *entry); int array_append_format (str_array_t *a, const char *format, ...) __attribute__((format(printf,2,3))); +int array_prepend (str_array_t *a, const char *entry); +int array_prepend_format (str_array_t *a, const char *format, ...) + __attribute__((format(printf,2,3))); + +int array_sort (str_array_t *a); + int array_argc (str_array_t *); char **array_argv (str_array_t *);