From aa5a3035ef607722ae1c6c29888bb5991fe29a3b Mon Sep 17 00:00:00 2001 From: cuz Date: Sun, 2 May 2004 00:53:39 +0000 Subject: [PATCH] New test program arg-test.c git-svn-id: svn://svn.cc65.org/cc65/trunk@3003 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- testcode/lib/arg-test.c | 16 ++++++++++++++++ testcode/lib/files.txt | 1 + 2 files changed, 17 insertions(+) create mode 100644 testcode/lib/arg-test.c diff --git a/testcode/lib/arg-test.c b/testcode/lib/arg-test.c new file mode 100644 index 000000000..c752acaeb --- /dev/null +++ b/testcode/lib/arg-test.c @@ -0,0 +1,16 @@ +#include +#include + +int main (int argc, char* argv[]) +{ + int I; + + printf ("argc: %d\n", argc); + for (I = 0; I < argc; ++I) { + printf ("argv[%2d]: \"%s\"\n", I, argv[I]); + } + return EXIT_SUCCESS; +} + + + diff --git a/testcode/lib/files.txt b/testcode/lib/files.txt index f7623eaf4..a599d20dc 100644 --- a/testcode/lib/files.txt +++ b/testcode/lib/files.txt @@ -2,6 +2,7 @@ Test programs for the runtime lib: ---------------------------------- +arg-test.c - test program for passing arguments to main() clock.c - test program for clock() and CLOCKS_PER_SEC cprintf.c - test program for cprintf \n and \r operators cursor.c - test the cursor() function -- 2.39.5