Lines Matching refs:CBC
56 struct CBC
66 struct CBC *cbc = ctx;
68 if (cbc->pos + size * nmemb > cbc->size)
70 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb);
71 cbc->pos += size * nmemb;
122 struct CBC cbc;
125 cbc.buf = buf;
126 cbc.size = 2048;
127 cbc.pos = 0;
135 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
158 if (cbc.pos != strlen (TESTSTR))
160 if (0 != strncmp (TESTSTR, cbc.buf, strlen (TESTSTR)))
171 struct CBC cbc;
174 cbc.buf = buf;
175 cbc.size = 2048;
176 cbc.pos = 0;
184 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
207 if (cbc.pos != strlen (TESTSTR))
209 if (0 != strncmp (TESTSTR, cbc.buf, strlen (TESTSTR)))
220 struct CBC cbc;
223 cbc.buf = buf;
224 cbc.size = 2048;
225 cbc.pos = 0;
234 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
257 if (cbc.pos != strlen (TESTSTR))
259 if (0 != strncmp (TESTSTR, cbc.buf, strlen (TESTSTR)))
270 struct CBC cbc;
283 cbc.buf = buf;
284 cbc.size = 2048;
285 cbc.pos = 0;
293 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
379 if (cbc.pos != strlen (TESTSTR))
381 if (0 != strncmp (TESTSTR, cbc.buf, strlen (TESTSTR)))
393 struct CBC cbc;
403 cbc.buf = buf;
404 cbc.size = 2048;
405 cbc.pos = 0;
429 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
452 if (cbc.pos != strlen (TESTSTR))
454 if (0 != strncmp (TESTSTR, cbc.buf, strlen (TESTSTR)))