aboutsummaryrefslogtreecommitdiff
path: root/doc/tutorial-examples/002.c
blob: 02233fd6193abe5dc7165405de91b1be6206c4ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
static char *string_option;
static int a_flag;

// ...
  struct GNUNET_GETOPT_CommandLineOption options[] = {
    GNUNET_GETOPT_option_string ('s', "name", "SOMESTRING",
     gettext_noop ("text describing the string_option NAME"),
     &string_option},
    GNUNET_GETOPT_option_flag ('f', "flag",
     gettext_noop ("text describing the flag option"), 
     &a_flag),
    GNUNET_GETOPT_OPTION_END
  };
  string_option = NULL;
  a_flag = GNUNET_SYSERR;
// ...