]> git.saurik.com Git - redis.git/blobdiff - deps/lua/test/printf.lua
makefile adapted to link against lua lib and to pass the 32bit flag to Lua building...
[redis.git] / deps / lua / test / printf.lua
diff --git a/deps/lua/test/printf.lua b/deps/lua/test/printf.lua
new file mode 100644 (file)
index 0000000..58c63ff
--- /dev/null
@@ -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())