forked from git/git
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathargv-array.h
More file actions
Latest commit
24 lines (19 loc) · 636 Bytes
/
Copy pathargv-array.h
File metadata and controls
24 lines (19 loc) · 636 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndefARGV_ARRAY_H
#defineARGV_ARRAY_H
externconstchar*empty_argv[];
structargv_array {
constchar**argv;
intargc;
intalloc;
};
#defineARGV_ARRAY_INIT { empty_argv, 0, 0 }
voidargv_array_init(structargv_array*);
voidargv_array_push(structargv_array*, constchar*);
__attribute__((format (printf,2,3)))
voidargv_array_pushf(structargv_array*, constchar*fmt, ...);
LAST_ARG_MUST_BE_NULL
voidargv_array_pushl(structargv_array*, ...);
voidargv_array_pushv(structargv_array*, constchar**);
voidargv_array_pop(structargv_array*);
voidargv_array_clear(structargv_array*);
#endif/* ARGV_ARRAY_H */