sqlite3_snprintf ( size buffer format -- char* )
SQLite formatting and variadic calls

Prev:sqlite3_vmprintf ( format args -- char* )
Next:sqlite3_vsnprintf ( size buffer format args -- char* )


Vocabulary
db.sqlite.ffi

Inputs
sizethe buffer capacity in bytes, including its terminator
buffera writable C buffer or byte array
formata UTF-8 format string requiring no anonymous arguments


Outputs
char*the supplied buffer pointer


Word description
Writes into the caller's buffer, returning that same pointer. Unlike C snprintf, SQLite takes the capacity before the buffer and returns a pointer rather than a character count. Positive capacities always produce a zero-terminated result. Define a typed FUNCTION-ALIAS for formats requiring anonymous arguments.

Definition