| 13 | // Engine/String.cpp |
| 14 | |
| 15 | void String_Copy(char* str, const char* b, uint32_t size) |
| 16 | { |
| 17 | #ifdef WIN32 |
| 18 | strncpy(str, b, size); |
| 19 | str[size - 1] = 0; |
| 20 | #else |
| 21 | strlcpy(str, b, size); |
| 22 | #endif |
| 23 | } |
| 24 | |
| 25 | // This version doesn't truncate and is simpler |
| 26 | int String_PrintfArgList(std::string& buffer, const char* format, va_list args) |
no test coverage detected