diff options
author | FreeArtMan <dos21h@gmail.com> | 2017-05-28 17:24:42 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2017-05-28 17:24:42 +0100 |
commit | 622c73263fb0a27cf0fe77247d5a0e0db4b9fdd3 (patch) | |
tree | 72f447ec26d8fd03183c973b5cc37aa89381dae7 /test | |
parent | 7cf1c1d56674382ba2b10d0f0cd8b56023c9a861 (diff) | |
download | libarg-622c73263fb0a27cf0fe77247d5a0e0db4b9fdd3.tar.gz libarg-622c73263fb0a27cf0fe77247d5a0e0db4b9fdd3.zip |
working list in da params
Diffstat (limited to 'test')
-rw-r--r-- | test/test1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test1.c b/test/test1.c index f6a7a70..1b1e98e 100644 --- a/test/test1.c +++ b/test/test1.c @@ -24,11 +24,13 @@ s_arg_float ratio_float = .val = 0.8 }; +char *color_list[] = {"RED","GREEN","BLUE"}; + s_arg_list color_name_list = { .num = 3, .default_val = "RED", - .vals = {"RED","GREEN","BLUE"} + .vals = color_list }; s_arg_val number_val = |