oconfig.c: Fix compiler warning.
[collection4.git] / utils_array.h
1 #ifndef UTILS_ARRAY_H
2 #define UTILS_ARRAY_H 1
3
4 struct str_array_s;
5 typedef struct str_array_s str_array_t;
6
7 str_array_t *array_create (void);
8 void array_destroy (str_array_t *a);
9 int array_append (str_array_t *a, const char *entry);
10 int array_append_format (str_array_t *a, const char *format, ...)
11   __attribute__((format(printf,2,3)));
12
13 int array_argc (str_array_t *);
14 char **array_argv (str_array_t *);
15
16 #endif /* UTILS_ARRAY_H */
17 /* vim: set sw=2 sts=2 et fdm=marker : */