LUA_PUSHFSTRING(3) Library Functions Manual LUA_PUSHFSTRING(3)

lua_pushfstringpushes onto the stack a formatted string and returns a pointer to this string, function indicator [-0, +1, m]

#include <lua.h>

const char *
lua_pushfstring(lua_State *L, const char *fmt, ...);

() pushes onto the stack a formatted string and returns a pointer to this string. It is similar to the C function sprintf(3), but has some important differences:

lua_Number(3)

Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.

The lua_pushfstring() manual page is based on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.

July 20, 2022 Debian