lua c api: how to push a string with a null character in the middle?

Posted by anon on Stack Overflow See other posts from Stack Overflow or by anon
Published on 2010-05-10T01:12:32Z Indexed on 2010/05/10 1:18 UTC
Read the original article Hit count: 161

Filed under:

normally, I would just use

lua_pushstring(lua_State* L, const char* s);

however, the string I want to push might have a null character in it. How do I make that work?

© Stack Overflow or respective owner

Related posts about lua

Related posts about c