gwion-util
utilities for the Gwion project
Loading...
Searching...
No Matches
carg.h
Go to the documentation of this file.
1
4#ifndef __CARG
5#define __CARG
6
8struct CArg {
9 char **argv;
10 int argc;
11 int idx;
12};
13
15ANN m_str option_argument(struct CArg *ca);
16
22#endif
ANN Vector split_args(MemPool, const m_str str)
returns separated arguments from a string in a vector.
Definition carg.c:45
ANN m_str option_argument(struct CArg *ca)
returns the option to the argument, errors and returns if none
Definition carg.c:7
#define ANN
Definition defs.h:19
char * m_str
Definition gwcommon.h:14
char ** str
Definition gwion_print.h:2
structure used to parse arguments
Definition carg.h:8
char ** argv
array of char* arguments
Definition carg.h:9
int idx
curr index [internal]
Definition carg.h:11
int argc
number of arguments
Definition carg.h:10