benilla-re systems structs docs

SStrVPrintf

function · storm · orchestration

Address
0x64a8b0 · 43 bytes, up to 0x64a8da
Signature
uint32_t __cdecl (char *dest, uint32_t size, const char *fmt, va_list args)
Meaning
Formats a va_list into a buffer of a given size, raising error 0x57 for a null buffer or format
Confidence
verified, proof one
Name from
the community database (idb)
Finding
storm/printf#formatting-into-a-buffer

Finding: Formatting into a buffer in storm: printf

SStrPrintf(dest, size, fmt, ...) and SStrVPrintf(dest, size, fmt, va) set error 0x57 and return 0 for a null dest or fmt, else return ISStrVPrintf(dest, size, fmt, va). That returns 0 for a size of 0 and writes nothing. For a size of 0x7fffffff it returns the result of vsoprintf, which is vsnoprintf with a size of 1,048,576 (2^20), or of the C runtime's vsprintf. Any other size runs vsnoprintf, or with option 10 clear the C runtime's _vsnprintf; a result not below the size, compared unsigned, ends the text with a NUL at size − 1 and returns size − 1.

The derivation is in the doc.

Callers 11

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.