Add Lua 5.1 source files and documentation, including core libraries, interpreter, and test scripts.
This commit is contained in:
7
ref/lua-5.1/test/printf.lua
Normal file
7
ref/lua-5.1/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())
|
||||
Reference in New Issue
Block a user