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:
parent
1ae117fed8
commit
aa5a3035ef
2 changed files with 17 additions and 0 deletions
16
testcode/lib/arg-test.c
Normal file
16
testcode/lib/arg-test.c
Normal 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;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue