mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-28 17:48:47 +00:00
Sysargs
This commit is contained in:
parent
c09a3b36b6
commit
33ec55e76e
6 changed files with 41 additions and 1 deletions
2
regression/x86only/orig/test009.log
Normal file
2
regression/x86only/orig/test009.log
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Number of commands-line arguments: 1
|
||||
arg [0 ] = "./test009"
|
||||
7
regression/x86only/test009.expr
Normal file
7
regression/x86only/test009.expr
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
local i;
|
||||
|
||||
printf ("Number of commands-line arguments: %d\n", sysargs.length);
|
||||
|
||||
for i := 0, i < sysargs.length, i := i + 1 do
|
||||
printf (" arg [%-2d] = %s\n", i, sysargs[i].string)
|
||||
od
|
||||
1
regression/x86only/test009.input
Normal file
1
regression/x86only/test009.input
Normal file
|
|
@ -0,0 +1 @@
|
|||
0
|
||||
Loading…
Add table
Add a link
Reference in a new issue