SStrVPrintf
function · storm · orchestration
- Address
0x64a8b0· 43 bytes, up to0x64a8da- 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
- CStatus::Prepend client
- CStatus::Add client
- 0x438eb0 os
- QueueConsoleLine glue
- CGGameUI::DisplayError ui
- 0x4b5fc0 ui
- AddCombatLogLine objectlayer
- ConsoleWriteA console
- ConsolePrintf console
- ConsoleWriteV console
- 0x6ed9b0 unassigned
Callees 2
- ISStrVPrintf storm
- SErrSetLastError storm
Calls and jumps by a bare address, from tables/calls.tsv.