commit 1cb6caa5284cd5d41f982109272cde640dd78e08 from: Sergey Bronnikov date: Wed Jul 27 06:59:11 2022 UTC man3: luaL_optlstring.3 commit - d9adcdd5870f89a27c7cd76876a4e5c41004aee4 commit + 1cb6caa5284cd5d41f982109272cde640dd78e08 blob - /dev/null blob + a9c62f981528064f2ce04b0f7962736cb46c4275 (mode 644) --- /dev/null +++ man3/luaL_optlstring.3 @@ -0,0 +1,32 @@ +.Dd $Mdocdate: July 26 2022 $ +.Dt LUAL_OPTLSTRING 3 +.Os +.Sh NAME +.Nm luaL_optlstring +.Nd if the function argument is a string, returns this string +.Sh SYNOPSIS +.In lauxlib.h +.Ft const char * +.Fn luaL_optlstring "lua_State *L" "int narg" "const char *d" "size_t *l" +.Sh DESCRIPTION +.Fn luaL_optlstring +if the function argument +.Fa narg +is a string, returns this string. +If this argument is absent or is +.Dv nil , +returns +.Fa d . +Otherwise, raises an error. +.Pp +If +.Fa l +is not +.Dv NULL , +fills the position +.Fa *l +with the results's length. +.Sh HISTORY +The +.Fn luaL_optlstring +manual page was written by Sergey Bronnikov.