const char *luaL_optlstring (lua_State *L, int narg, const char *d, size_t *l);
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.