lua-users home
lua-l archive

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

>I grepped for strlen and printf and looks like there indeed is 
>non-trivial code that expects lua_tolstring to return proper C 
>like in the str_format function. Will try to figure it out.

It is important to point out that you will find in the manual 
that string.format does not work with strings with zeros in the 
middle in many cases. This is explicitly stated in the manual.

The only format specifier that I'm aware of that allows for 
zeros is %q.