* lib/lua/test: Add.
This commit is contained in:
parent
149a0ba1d9
commit
e8ac11b670
21 changed files with 531 additions and 0 deletions
7
trunk/lib/lua/test/printf.lua
Normal file
7
trunk/lib/lua/test/printf.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
-- an implementation of printf
|
||||
|
||||
function printf(...)
|
||||
io.write(string.format(...))
|
||||
end
|
||||
|
||||
printf("Hello %s from %s on %s\n",os.getenv"USER" or "there",_VERSION,os.date())
|
||||
Loading…
Add table
Add a link
Reference in a new issue