MCPcopy Create free account
hub / github.com/cactus-compute/cactus / curl_write_to_string

Function curl_write_to_string

tests/test_curl.cpp:92–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90};
91
92static size_t curl_write_to_string(char* ptr, size_t size, size_t nmemb, void* userdata) {
93 if (!userdata) return 0;
94 std::string* out = static_cast<std::string*>(userdata);
95 out->append(ptr, size * nmemb);
96 return size * nmemb;
97}
98
99static bool curl_supports_protocol(const char* name) {
100#if !CACTUS_TEST_HAS_CURL

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected