X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Futils_array.h;h=53670c5abdd16bec0a6e884acadf66ff1e937065;hb=cf3388109bd48029d5d0e9e78d4389bb682eb18d;hp=917bea95e9cee0b142b2809cf1e059f416e7b63c;hpb=0ab3085f89e64eecd67d3179ea87f0463e918a10;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 *);