MCPcopy Create free account
hub / github.com/acl-dev/acl / add_name_servers

Function add_name_servers

lib_acl_cpp/samples/aio/http_client/main.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34static void add_name_servers(std::vector<acl::string>& addrs, const char* s)
35{
36 acl::string buf(s);
37 const std::vector<acl::string>& tokens = buf.split2(",; \t");
38
39 for (std::vector<acl::string>::const_iterator cit = tokens.begin();
40 cit != tokens.end(); ++cit) {
41
42 addrs.push_back(*cit);
43 }
44}
45
46int main(int argc, char* argv[])
47{

Callers 1

mainFunction · 0.85

Calls 3

beginMethod · 0.80
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…