str_array_t *array_create (void);
void array_destroy (str_array_t *a);
+/* Appends a string to the array. The string is duplicated, so the original
+ * string may / must be freed. */
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)));
+/* Prepends a string to the array. The string is duplicated, so the original
+ * string may / must be freed. */
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)));