Lines Matching defs:cbc
57 struct CBC
82 struct CBC *cbc = ctx;
84 if (cbc->pos + size * nmemb > cbc->size)
86 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb);
87 cbc->pos += size * nmemb;
167 struct CBC cbc;
170 cbc.buf = buf;
171 cbc.size = 2048;
172 cbc.pos = 0;
182 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
208 if (cbc.pos != strlen ("/hello_world"))
210 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
221 struct CBC cbc;
224 cbc.buf = buf;
225 cbc.size = 2048;
226 cbc.pos = 0;
236 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
262 if (cbc.pos != strlen ("/hello_world"))
264 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
275 struct CBC cbc;
278 cbc.buf = buf;
279 cbc.size = 2048;
280 cbc.pos = 0;
291 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
317 if (cbc.pos != strlen ("/hello_world"))
319 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
330 struct CBC cbc;
343 cbc.buf = buf;
344 cbc.size = 2048;
345 cbc.pos = 0;
355 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
444 if (cbc.pos != strlen ("/hello_world"))
446 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
537 struct CBC cbc;
550 cbc.buf = buf;
551 cbc.size = 2048;
552 cbc.pos = 0;
566 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
615 if (!result && (cbc.pos != 0))