aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/testLua/yueliang-0.4.1/test_lua/5.0/printf.lua
blob: 66dfda65d51757fffa16056404e4505be908e1ee (plain)
1
2
3
4
5
6
7
-- an implementation of printf

function printf(...)
 io.write(string.format(unpack(arg)))
end

printf("Hello %s from %s on %s\n",os.getenv"USER" or "there",_VERSION,os.date())