lua-users home
lua-l archive

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


In message <20070710105939.A20733@lua.tecgraf.puc-rio.br> you wrote:

> > 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",...).

Thanks for the replies. I think I have understood why I was getting
the results I got.

-- 
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/