liboptcfg

diff example/example.c @ 2:9c73004c7af3

works
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 20 Nov 2015 17:05:39 +0200
parents 8fd2858c6a29
children f971dfa66076
line diff
     1.1 --- a/example/example.c	Sat Nov 14 14:12:30 2015 +0200
     1.2 +++ b/example/example.c	Fri Nov 20 17:05:39 2015 +0200
     1.3 @@ -54,10 +54,10 @@
     1.4  
     1.5  	switch(opt) {
     1.6  	case OPT_FOO:
     1.7 -		foo = 1;
     1.8 +		optcfg_enabled_value(oc, &foo);
     1.9  		break;
    1.10  	case OPT_BAR:
    1.11 -		bar = 1;
    1.12 +		optcfg_enabled_value(oc, &bar);
    1.13  		break;
    1.14  	case OPT_XYZZY:
    1.15  		/* this option needs an integer value */