mirror of
https://github.com/cc65/cc65.git
synced 2025-01-03 01:31:55 +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:
parent
1ae117fed8
commit
aa5a3035ef
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:
|
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
|
clock.c - test program for clock() and CLOCKS_PER_SEC
|
||||||
cprintf.c - test program for cprintf \n and \r operators
|
cprintf.c - test program for cprintf \n and \r operators
|
||||||
cursor.c - test the cursor() function
|
cursor.c - test the cursor() function
|
||||||
|
Loading…
Reference in New Issue
Block a user