Back to index

glibc  2.9
Defines | Functions | Variables
tst-argp1.c File Reference
#include <argp.h>
#include "../test-skeleton.c"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define OPT_TO_THREAD   300
#define OPT_TO_PROCESS   301
#define OPT_SYNC_SIGNAL   302
#define OPT_SYNC_JOIN   303
#define OPT_TOPLEVEL   304
#define TEST_FUNCTION   do_test ()


static error_t parse_opt (int key, char *arg, struct argp_state *state)
static int do_test (void)


static struct argp_option []
static struct argp

Define Documentation

#define OPT_SYNC_JOIN   303

Definition at line 28 of file tst-argp1.c.

#define OPT_SYNC_SIGNAL   302

Definition at line 27 of file tst-argp1.c.

#define OPT_TO_PROCESS   301

Definition at line 26 of file tst-argp1.c.

#define OPT_TO_THREAD   300

Definition at line 25 of file tst-argp1.c.

#define OPT_TOPLEVEL   304

Definition at line 29 of file tst-argp1.c.

#define TEST_FUNCTION   do_test ()

Definition at line 117 of file tst-argp1.c.

Function Documentation

static int do_test ( void  ) [static]

Definition at line 97 of file tst-argp1.c.

  int argc = 2;
  char *argv[3] = { (char *) "tst-argp1", (char *) "--help", NULL };
  int remaining;

  /* Parse and process arguments.  */
  argp_parse (&argp, argc, argv, 0, &remaining, NULL);

  return 0;

Here is the call graph for this function:

static error_t parse_opt ( int  key,
char *  arg,
struct argp_state state 
) [static]

Definition at line 112 of file tst-argp1.c.


Variable Documentation

struct argp [static]
Initial value:
  test_options, parse_opt

Definition at line 90 of file tst-argp1.c.

struct argp_option[] [static]

Definition at line 32 of file tst-argp1.c.