*Luaで良く作る関数 ~io編~ [#tfd3313e] --printf #sh(lua){{ -- いわゆるprintf。 function printf(...) local function wrapper(...) io.write(string.format(...)) end local status, result = pcall(wrapper, ...) if not status then error(result, 2) end end }}