lua_pushfstring ( L fmt -- c-string )
Lua 5.5 ยป Lua 5.5 variadic formatting

Next:lua_pushvfstring ( L fmt argp -- c-string )


Vocabulary
lua

Inputs
La c-ptr
fmta string


Outputs
c-stringa string


Word description
Pushes a formatted Lua string and returns its contents as a Factor string. This base declaration has no anonymous arguments. Define a typed FUNCTION-ALIAS: for each argument shape, with ... after the state and format parameters.

Notes
Lua 5.5 accepts only %s (C string), %d (int), %f (lua_Number), %I (lua_Integer), %c (int), %U (unsigned long Unicode code point), %p (pointer), and %%. Width, precision, and printf length modifiers are not supported. The format must match the alias's types and argument count.

Definition