gwion-util
utilities for the Gwion project
Loading...
Searching...
No Matches
carg.h
Go to the documentation of this file.
1
4#pragma once
5
7struct CArg {
8 char **argv;
9 int argc;
10 int idx;
11};
12
14ANN m_str option_argument(struct CArg *ca);
15
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:18
char * m_str
Definition gwcommon.h:15
char ** str
Definition gwion_print.h:2
struct MemPool_ * MemPool
structure used to parse arguments
Definition carg.h:7
char ** argv
array of char* arguments
Definition carg.h:8
int idx
curr index [internal]
Definition carg.h:10
int argc
number of arguments
Definition carg.h:9
struct Vector_ * Vector