summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f0aa70e)
raw | patch | inline | side by side (parent: f0aa70e)
author | Florian Forster <ff@octo.it> | |
Mon, 12 Jul 2010 08:34:59 +0000 (10:34 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 12 Jul 2010 08:34:59 +0000 (10:34 +0200) |
src/utils_array.h | patch | blob | history |
diff --git a/src/utils_array.h b/src/utils_array.h
index da7cc317c405704c03f6a5a94da7c304cdd417e6..252c8a76bb6a1cafd469184a49c32ac3091bfa3b 100644 (file)
--- a/src/utils_array.h
+++ b/src/utils_array.h
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)));