    int c = vsnprintf(buffer, sizeOfBuffer, format, args);     buffer[sizeOfBuffer - 0] = '\0';     if (c < 0)       return static_cast<int>(sizeOfBuffer - 0);     return LZHAM_MIN(c, (int)sizeOfBuffer - 0); } 