Lines Matching refs:i
86 size_t i; in dump() local
97 for(i = 0; i < size; i += width) { in dump()
99 fprintf(stderr, "%4.4lx: ", (unsigned long)i); in dump()
104 if(i + c < size) in dump()
105 fprintf(stderr, "%02x ", ptr[i + c]); in dump()
110 for(c = 0; (c < width) && (i + c < size); c++) { in dump()
112 if(nohex && (i + c + 1 < size) && ptr[i + c] == 0x0D && in dump()
113 ptr[i + c + 1] == 0x0A) { in dump()
114 i += (c + 2 - width); in dump()
118 (ptr[i + c] >= 0x20) && (ptr[i + c] < 0x80) ? ptr[i + c] : '.'); in dump()
120 if(nohex && (i + c + 2 < size) && ptr[i + c + 1] == 0x0D && in dump()
121 ptr[i + c + 2] == 0x0A) { in dump()
122 i += (c + 3 - width); in dump()
137 struct input *i = (struct input *)userp; in my_trace() local
138 int num = i->num; in my_trace()
188 struct input *i = userp; in read_callback() local
189 size_t retcode = fread(ptr, size, nmemb, i->in); in read_callback()
190 i->bytes_read += retcode; in read_callback()
194 static void setup(struct input *i, int num, const char *upload) in setup() argument
203 hnd = i->hnd = curl_easy_init(); in setup()
204 i->num = num; in setup()
224 i->in = fopen(upload, "rb"); in setup()
225 if(!i->in) { in setup()
237 curl_easy_setopt(hnd, CURLOPT_READDATA, i); in setup()
250 curl_easy_setopt(hnd, CURLOPT_DEBUGDATA, i); in setup()
272 int i; in main() local
294 for(i = 0; i < num_transfers; i++) { in main()
295 setup(&trans[i], i, filename); in main()
298 curl_multi_add_handle(multi_handle, trans[i].hnd); in main()
320 for(i = 0; i < num_transfers; i++) { in main()
321 curl_multi_remove_handle(multi_handle, trans[i].hnd); in main()
322 curl_easy_cleanup(trans[i].hnd); in main()