| 426 | } |
| 427 | |
| 428 | void SIValue_StringJoin(SIValue *strings, unsigned int string_count, const char *delimiter, |
| 429 | char **buf, size_t *buf_len, size_t *bytesWritten) { |
| 430 | |
| 431 | for(int i = 0; i < string_count; i ++) { |
| 432 | SIValue_ToString(strings[i], buf, buf_len, bytesWritten); |
| 433 | if(i < string_count - 1) *bytesWritten += snprintf(*buf + *bytesWritten, *buf_len, "%s", delimiter); |
| 434 | } |
| 435 | } |
| 436 | |
| 437 | // assumption: either a or b is a string |
| 438 | static SIValue SIValue_ConcatString(const SIValue a, const SIValue b) { |
no test coverage detected