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