296
* A printf-like function (that only recognizes a subset of standard printf
297
* format operators) that prints arguments to an argv list instead
298
* of a standard string. This is used to build up argv arrays for passing
301
void argv_init (struct argv *a);
302
struct argv argv_new (void);
303
void argv_reset (struct argv *a);
304
size_t argv_argc (const char *format);
305
char *argv_term (const char **f);
306
const char *argv_str (const struct argv *a, struct gc_arena *gc, const unsigned int flags);
307
struct argv argv_insert_head (const struct argv *a, const char *head);
308
void argv_msg (const int msglev, const struct argv *a);
309
void argv_msg_prefix (const int msglev, const struct argv *a, const char *prefix);
311
#define APA_CAT (1<<0) /* concatentate onto existing struct argv list */
312
void argv_printf_arglist (struct argv *a, const char *format, const unsigned int flags, va_list arglist);
314
void argv_printf (struct argv *a, const char *format, ...)
316
__attribute__ ((format (printf, 2, 3)))
320
void argv_printf_cat (struct argv *a, const char *format, ...)
322
__attribute__ ((format (printf, 2, 3)))
327
297
* remove/add trailing characters