From 7f07f09d52aed7c449a330d8a82c1280776e49e0 Mon Sep 17 00:00:00 2001 From: ng0 Date: Sat, 21 Oct 2017 16:37:12 +0000 Subject: move docmentation to separate folder --- doc/documentation/tutorial-examples/002.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/documentation/tutorial-examples/002.c (limited to 'doc/documentation/tutorial-examples/002.c') diff --git a/doc/documentation/tutorial-examples/002.c b/doc/documentation/tutorial-examples/002.c new file mode 100644 index 000000000..02233fd61 --- /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; +// ... + -- cgit v1.2.3