diff options
Diffstat (limited to 'tinyc/tests/tests2/31_args.c')
-rw-r--r-- | tinyc/tests/tests2/31_args.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tinyc/tests/tests2/31_args.c b/tinyc/tests/tests2/31_args.c new file mode 100644 index 000000000..dcafed52b --- /dev/null +++ b/tinyc/tests/tests2/31_args.c @@ -0,0 +1,14 @@ +#include <stdio.h> + +int main(int argc, char **argv) +{ + int Count; + + printf("hello world %d\n", argc); + for (Count = 1; Count < argc; Count++) + printf("arg %d: %s\n", Count, argv[Count]); + + return 0; +} + +/* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/ |