Lines Matching defs:cbc
47 struct CBC
73 struct CBC *cbc = ctx;
75 if (cbc->pos + size * nmemb > cbc->size)
77 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb);
78 cbc->pos += size * nmemb;
136 struct CBC cbc;
141 cbc.buf = buf;
142 cbc.size = 2048;
143 cbc.pos = 0;
152 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
179 if (cbc.pos != strlen ("/hello_world"))
181 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
192 struct CBC cbc;
197 cbc.buf = buf;
198 cbc.size = 2048;
199 cbc.pos = 0;
208 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
235 if (cbc.pos != strlen ("/hello_world"))
237 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
249 struct CBC cbc;
254 cbc.buf = buf;
255 cbc.size = 2048;
256 cbc.pos = 0;
266 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
293 if (cbc.pos != strlen ("/hello_world"))
295 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
308 struct CBC cbc;
323 cbc.buf = buf;
324 cbc.size = 2048;
325 cbc.pos = 0;
334 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
424 if (cbc.pos != strlen ("/hello_world"))
426 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))