[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Is terminating null required for Lua strings?
- From: Matthew Paul Del Buono <delbu9c1@...>
- Date: Sun, 3 May 2009 22:07:14 -0400 (EDT)
>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.