summaryrefslogtreecommitdiffstats
path: root/test/arguments/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/arguments/main.c')
-rw-r--r--test/arguments/main.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/arguments/main.c b/test/arguments/main.c
new file mode 100644
index 000000000..75bdca715
--- /dev/null
+++ b/test/arguments/main.c
@@ -0,0 +1,31 @@
1/*
2 * Copyright (C) 2014-2016 Firejail Authors
3 *
4 * This file is part of firejail project
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19*/
20#include <stdio.h>
21
22int main(int argc, char **argv) {
23 printf("Arguments:\n");
24
25 int i;
26 for (i = 0; i < argc; i++) {
27 printf("#%s#\n", argv[i]);
28 }
29
30 return 0;
31}