snformat

Write the processed (formatted) input into a fixed-length buffer

This function will not perform any allocation. If the output does not fit in buffer, the extra output will simply be discarded.

snformat
(
Args...
)

Parameters

buffer mstring

The buffer to write the formatted string into. Unlike the sformat overloads, the buffer won't be extended. This leads to a slightly different semantic for this buffer (the others are only appended to, this one is written to).

fmt cstring

Format string to use

args Args

Variadic arguments to format according to fmt

Return Value

Type: mstring

A reference to buffer

Meta