12 va_start(args, formatString);
23 if (formatString ==
nullptr) {
27 else if (maximumSize > std::numeric_limits<size_t>::max()) {
30 PlatformIntType needed_size = vsnprintf(destination, static_cast<size_t>(maximumSize), formatString, args);
31 destination[maximumSize - 1] = 0;
32 if (needed_size < 0) {
34 }
else if (static_cast<FwSizeType>(needed_size) >= maximumSize) {
PlatformSizeType FwSizeType
FwSizeType overflowed the range of size_t.
Format provided invalid format string.
An error was returned from an underlying call.
FormatStatus stringFormat(char *destination, const FwSizeType maximumSize, const char *formatString,...)
format a c-string
FormatStatus
status of string format calls