Difference between revisions of "Global Addon"
(Created page with "== sprintf() == '''string sprintf(fmt, ...)''' (C-style) Format a string and return the result. This function is essentially just symbolic link to string.format() [http://www...") |
m (Protected "Global Addon" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
(No difference)
|
Revision as of 18:32, 3 June 2014
Contents
sprintf()
string sprintf(fmt, ...)
(C-style) Format a string and return the result. This function is essentially just symbolic link to string.format() [1].
printf()
printf(fmt, ...)
(C-style) Format and print a string. This acts much like io.write() except that it does not append the newline character (\n).
unpack2()
table unpack2(...)
Takes a variable argument list and returns them as a table. That is, any arguments fed into this function become a list.
include()
[variable result] include(string filename[, boolean force])
"include" (dofile) a file. If 'force' is false or ungiven, this will not include the same file multiple times. The returned value is whatever the file returns (if it is to be executed).
NOTE: This function modified the CWD, both before and after loading the target file.