Back to index

glibc  2.9
bug-argp1.c
Go to the documentation of this file.
00001 #include <argp.h>
00002 
00003 
00004 static const struct argp_option test_options[] =
00005 {
00006   { NULL, 'a', NULL, OPTION_DOC, NULL },
00007   { NULL, 'b', NULL, OPTION_DOC, NULL },
00008   { NULL, 0, NULL, 0, NULL }
00009 };
00010 
00011 static struct argp test_argp =
00012 {
00013   test_options
00014 };
00015 
00016 
00017 static int
00018 do_test (int argc, char *argv[])
00019 {
00020   int i;
00021   argp_parse (&test_argp, argc, argv, 0, &i, NULL);
00022   return 0;
00023 }
00024 
00025 #define TEST_FUNCTION do_test (argc, argv)
00026 #include "../test-skeleton.c"