Commit Diff


commit - 0d83d5c296b712b036272fa576f23de271b0b534
commit + 04cdbbe0c09d8058b495106a609cf32a5de5de79
blob - /dev/null
blob + a30097ce13b4899a82aa67d13f39be57af76df32 (mode 644)
--- /dev/null
+++ man3/luaL_optstring.3
@@ -0,0 +1,24 @@
+.Dd $Mdocdate: July 26 2022 $
+.Dt LUAL_OPTSTRING 3
+.Os
+.Sh NAME
+.Nm luaL_optstring
+.Nd if the function argument is a string, returns this string
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft const char *
+.Fn luaL_optstring "lua_State *L" "int narg" "const char *d"
+.Sh DESCRIPTION
+.Fn luaL_optstring
+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.
+.Sh HISTORY
+The
+.Fn luaL_optstring
+manual page was written by Sergey Bronnikov.