| 314 | } |
| 315 | |
| 316 | utf8* format(utf8* buffer, size_t bufferSize, const utf8* format, ...) |
| 317 | { |
| 318 | va_list args; |
| 319 | |
| 320 | va_start(args, format); |
| 321 | vsnprintf(buffer, bufferSize, format, args); |
| 322 | va_end(args); |
| 323 | |
| 324 | // Terminate buffer in case formatted string overflowed |
| 325 | buffer[bufferSize - 1] = '\0'; |
| 326 | |
| 327 | return buffer; |
| 328 | } |
| 329 | |
| 330 | u8string stdFormat(const utf8* format, ...) |
| 331 | { |
no outgoing calls
no test coverage detected