MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / StringBuilder_join

Function StringBuilder_join

Tools/ToolsBootstrap.c:495–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493 if (sv->data) {
494 for (size_t i = 0; i < sv->count; ++i) {
495 if (sv->data[i]) free(sv->data[i]);
496 }
497 free(sv->data);
498 sv->data = NULL;
499 }
500 sv->count = 0;
501 sv->capacity = 0;
502}
503
504void StringVector_add(StringVector* sv, const char* str) {
505 if (sv->count >= sv->capacity) {
506 size_t new_capacity = sv->capacity * 2;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected