diff options
author | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2017-12-02 22:34:21 +0100 |
---|---|---|
committer | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2017-12-02 22:34:21 +0100 |
commit | b16fa2d88aabb18f222b40136d6ace68ffc104c6 (patch) | |
tree | 6d46f086f018b6e6c169a8d8312b5990c33c3561 /doc/documentation/tutorial-examples/002.c | |
parent | a9a7ac802811e76e33b54040bf31f00ea9438cea (diff) | |
parent | 862e488e08ca71db56dedd59059c5bb1a8c130a5 (diff) |
Merge remote-tracking branch 'origin/master' into identity_abe
Diffstat (limited to 'doc/documentation/tutorial-examples/002.c')
-rw-r--r-- | doc/documentation/tutorial-examples/002.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/documentation/tutorial-examples/002.c b/doc/documentation/tutorial-examples/002.c new file mode 100644 index 0000000000..02233fd619 --- /dev/null +++ b/doc/documentation/tutorial-examples/002.c @@ -0,0 +1,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; +// ... + |