Home | History | Annotate | Download | only in testcurl

Lines Matching defs:cbc

48 struct CBC
72 struct CBC *cbc = ctx;
74 if (cbc->pos + size * nmemb > cbc->size)
76 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb);
77 cbc->pos += size * nmemb;
126 struct CBC cbc;
131 cbc.buf = buf;
132 cbc.size = 2048;
133 cbc.pos = 0;
142 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
169 if (cbc.pos != strlen ("/hello_world"))
171 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
182 struct CBC cbc;
187 cbc.buf = buf;
188 cbc.size = 2048;
189 cbc.pos = 0;
198 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
225 if (cbc.pos != strlen ("/hello_world"))
227 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
239 struct CBC cbc;
244 cbc.buf = buf;
245 cbc.size = 2048;
246 cbc.pos = 0;
256 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
283 if (cbc.pos != strlen ("/hello_world"))
285 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
298 struct CBC cbc;
313 cbc.buf = buf;
314 cbc.size = 2048;
315 cbc.pos = 0;
324 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
414 if (cbc.pos != strlen ("/hello_world"))
416 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))