FormatEx

Last Updated2023-11-06
Created At2007-01-01

Formats a string according to the SourceMod format rules (see documentation).

Notes

This is the same as Format(), except none of the input buffers can overlap the same memory as the output buffer. Since this security check is removed, it is slightly faster.

native int FormatEx(char[] buffer, int maxlength, const char[] format, any ...)

Parameters

char[] buffer
Destination string buffer.
int maxlength
Maximum length of output string buffer, including the null terminator.
const char[] format
Formatting rules.
any... ...
Variable number of format parameters.

Return Value

int Number of characters written to the buffer, not including the null terminator.