liboptcfg

diff example/example.c @ 3:f971dfa66076

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 27 Jul 2016 04:31:40 +0300
parents 9c73004c7af3
children
line diff
     1.1 --- a/example/example.c	Fri Nov 20 17:05:39 2015 +0200
     1.2 +++ b/example/example.c	Wed Jul 27 04:31:40 2016 +0300
     1.3 @@ -15,7 +15,7 @@
     1.4  	{'b', "bar", OPT_BAR, "bar also does nothing"},
     1.5  	{0, "xyzzy", OPT_XYZZY, "xyzzy doesn't have a short option"},
     1.6  	{'h', "help", OPT_HELP, "print usage and exit"},
     1.7 -	{0, 0, -1, 0}	/* terminate with id=-1 */
     1.8 +	OPTCFG_OPTIONS_END
     1.9  };
    1.10  
    1.11  int foo, bar;