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

Function String_containsPathSeparator

Tools/ToolsBootstrap.c:525–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523 if (empty) empty[0] = 0;
524 return empty;
525 }
526 size_t sep_len = strlen(sep);
527 size_t total_len = 0;
528 for (size_t i = 0; i < sv->count; ++i) {
529 total_len += strlen(sv->data[i]);
530 }
531 total_len += (sv->count - 1) * sep_len + 1;
532 char* result = (char*)malloc(total_len);
533 if (!result) return NULL;
534 result[0] = 0;
535 for (size_t i = 0; i < sv->count; ++i) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected