| LUAL_OPTLSTRING(3) | Library Functions Manual | LUAL_OPTLSTRING(3) |
luaL_optlstring —
if the function argument is a string, returns this string,
function indicator [-0, +0, v]
#include
<lauxlib.h>
const char *
luaL_optlstring(lua_State
*L, int narg,
const char *d,
size_t *l);
luaL_optlstring()
if the function argument narg is a string, returns
this string. If this argument is absent or is nil,
returns d. Otherwise, raises an error.
If l is not NULL,
fills the position *l with the results's length.
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.
The luaL_optlstring() manual page is based
on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
| July 26, 2022 | Debian |