better describe da proccess
This commit is contained in:
parent
e31a2fff3b
commit
72fc4e2301
@ -8,7 +8,7 @@ for a full example of usage look at test.c
|
|||||||
|
|
||||||
Call
|
Call
|
||||||
`carg_parse(int argc, char** argv)`
|
`carg_parse(int argc, char** argv)`
|
||||||
it will return a struct containing:
|
it will return `carg_parse_data*` containing:
|
||||||
```c
|
```c
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
@ -31,4 +31,4 @@ values and lv_values both point to argv, and lv_labels points to argv + 1, as to
|
|||||||
|
|
||||||
when done with the data, call
|
when done with the data, call
|
||||||
`carg_parse_free(carg_parse_data* data)`
|
`carg_parse_free(carg_parse_data* data)`
|
||||||
to free the data
|
to free the data, it does not free the individual values and labels, as these just point to the values in argv, so if you have moved / modified these pointers, you will have to free them yourself.
|
||||||
|
Loading…
Reference in New Issue
Block a user