aboutsummaryrefslogtreecommitdiff
path: root/doc/documentation/tutorial-examples/002.c
diff options
context:
space:
mode:
authorng0 <ng0@infotropique.org>2017-10-21 16:37:12 +0000
committerng0 <ng0@infotropique.org>2017-10-21 16:37:12 +0000
commit7f07f09d52aed7c449a330d8a82c1280776e49e0 (patch)
tree01dc30d8791a3b23661f31b046029b9de4cd6a21 /doc/documentation/tutorial-examples/002.c
parentc49513a65ed3db8ba7043481d0dab920ab40ee48 (diff)
downloadgnunet-7f07f09d52aed7c449a330d8a82c1280776e49e0.tar.gz
gnunet-7f07f09d52aed7c449a330d8a82c1280776e49e0.zip
move docmentation to separate folder
Diffstat (limited to 'doc/documentation/tutorial-examples/002.c')
-rw-r--r--doc/documentation/tutorial-examples/002.c17
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 000000000..02233fd61
--- /dev/null
+++ b/doc/documentation/tutorial-examples/002.c
@@ -0,0 +1,17 @@
1static char *string_option;
2static int a_flag;
3
4// ...
5 struct GNUNET_GETOPT_CommandLineOption options[] = {
6 GNUNET_GETOPT_option_string ('s', "name", "SOMESTRING",
7 gettext_noop ("text describing the string_option NAME"),
8 &string_option},
9 GNUNET_GETOPT_option_flag ('f', "flag",
10 gettext_noop ("text describing the flag option"),
11 &a_flag),
12 GNUNET_GETOPT_OPTION_END
13 };
14 string_option = NULL;
15 a_flag = GNUNET_SYSERR;
16// ...
17