2 #define UTILS_ARRAY_H 1
5 typedef struct str_array_s str_array_t;
7 str_array_t *array_create (void);
8 void array_destroy (str_array_t *a);
10 int array_append (str_array_t *a, const char *entry);
11 int array_append_format (str_array_t *a, const char *format, ...)
12 __attribute__((format(printf,2,3)));
14 int array_prepend (str_array_t *a, const char *entry);
15 int array_prepend_format (str_array_t *a, const char *format, ...)
16 __attribute__((format(printf,2,3)));
18 int array_sort (str_array_t *a);
20 int array_argc (str_array_t *);
21 char **array_argv (str_array_t *);
23 #endif /* UTILS_ARRAY_H */
24 /* vim: set sw=2 sts=2 et fdm=marker : */