12 va_start(args, formatString);
20 const char* formatString,
26 if (formatString ==
nullptr) {
30 else if (maximumSize > std::numeric_limits<size_t>::max()) {
33 int needed_size = vsnprintf(destination, static_cast<size_t>(maximumSize), formatString, args);
34 destination[maximumSize - 1] = 0;
35 if (needed_size < 0) {
37 }
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