lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> print() uses lua_tostring(), which treats string as asciiz one.

Not exactly. print() uses fputs(), which assumes zero-terminated strings.

print is mostly for debugging. if you want nicer output, use
string.format("%q",...).

--lhf