MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / test_buffer_appendf

Function test_buffer_appendf

tests/test_pipeline.c:2539–2553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2537}
2538
2539static bool test_buffer_appendf(char *buffer, size_t capacity, size_t *used, const char *format,
2540 ...) {
2541 if (!buffer || !used || *used >= capacity) {
2542 return false;
2543 }
2544 va_list args;
2545 va_start(args, format);
2546 int written = vsnprintf(buffer + *used, capacity - *used, format, args);
2547 va_end(args);
2548 if (written < 0 || (size_t)written >= capacity - *used) {
2549 return false;
2550 }
2551 *used += (size_t)written;
2552 return true;
2553}
2554
2555static CBM_TLS int objectscript_timeout_calls;
2556static CBM_TLS int64_t objectscript_expected_timeout;

Callers 1

test_pipeline.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected