sj4/trunk/lib/lua/test/printf.lua
2008-01-11 12:02:44 +00:00

7 lines
169 B
Lua

-- 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())