MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / to_cstr_vec

Function to_cstr_vec

tools/server/server-tools.cpp:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18//
19
20static std::vector<char *> to_cstr_vec(const std::vector<std::string> & v) {
21 std::vector<char *> r;
22 r.reserve(v.size() + 1);
23 for (const auto & s : v) {
24 r.push_back(const_cast<char *>(s.c_str()));
25 }
26 r.push_back(nullptr);
27 return r;
28}
29
30struct run_proc_result {
31 std::string output;

Callers 1

run_processFunction · 0.85

Calls 2

sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected