LUA_PUSHSTRING(3) | Library Functions Manual | LUA_PUSHSTRING(3) |
lua_pushstring
—
pushes the zero-terminated string onto the stack, function
indicator [-0, +1, m]
#include
<lua.h>
void
lua_pushstring
(lua_State
*L, const char
*s);
lua_pushstring
()
pushes the zero-terminated string pointed to by s onto
the stack. Lua makes (or reuses) an internal copy of the given string, so
the memory at s can be freed or reused immediately
after the function returns. The string cannot contain embedded zeros; it is
assumed to end at the first zero.
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.
The lua_pushstring
() manual page is based
on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
July 18, 2022 | Debian |