projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/utils_array.[ch]: Implement "array_prepend{,_format}".
[collection4.git]
/
src
/
utils_array.h
diff --git
a/src/utils_array.h
b/src/utils_array.h
index
141dbaa
..
53670c5
100644
(file)
--- a/
src/utils_array.h
+++ b/
src/utils_array.h
@@
-6,10
+6,15
@@
typedef struct str_array_s str_array_t;
str_array_t *array_create (void);
void array_destroy (str_array_t *a);
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_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 *);
int array_sort (str_array_t *a);
int array_argc (str_array_t *);