| 130 | } |
| 131 | |
| 132 | int32_t vsnprintf(char* dst, size_t dstSize, const char* src, va_list arg) |
| 133 | { |
| 134 | |
| 135 | #if PX_VC // MSVC is not C99-compliant... |
| 136 | int32_t result = dst ? ::vsnprintf(dst, dstSize, src, arg) : -1; |
| 137 | if(dst && (result == int32_t(dstSize) || result < 0)) |
| 138 | dst[dstSize - 1] = 0; // string was truncated or there wasn't room for the NULL |
| 139 | if(result < 0) |
| 140 | result = _vscprintf(src, arg); // work out how long the answer would have been. |
| 141 | #else |
| 142 | int32_t result = ::vsnprintf(dst, dstSize, src, arg); |
| 143 | #endif |
| 144 | return result; |
| 145 | } |
| 146 | |
| 147 | int32_t stricmp(const char* str, const char* str1) |
| 148 | { |
no outgoing calls
no test coverage detected