benilla-re systems structs docs

vsoprintf

function · storm · orchestration

Address
0x669d10 · 30 bytes, up to 0x669d2d
Signature
int32_t __cdecl (char *dest, const char *fmt, va_list args)
Meaning
Formats through vsnoprintf with a size of 2^20
Confidence
verified, proof one
Name from
the community database (idb)
Finding
storm/printf#formatting-into-a-buffer
Test
storm::isstrvprintf_difftest

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 1

Callees 1

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