1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-27 04:54:54 +00:00

New test program arg-test.c

git-svn-id: svn://svn.cc65.org/cc65/trunk@3003 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2004-05-02 00:53:39 +00:00
parent 1ae117fed8
commit aa5a3035ef
2 changed files with 17 additions and 0 deletions

16
testcode/lib/arg-test.c Normal file
View File

@ -0,0 +1,16 @@
#include <stdio.h>
#include <stdlib.h>
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;
}

View File

@ -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