/curl/docs/examples/ |
H A D | websocket-cb.c | 31 static size_t writecb(char *b, size_t size, size_t nitems, void *p) in writecb() argument 38 fprintf(stderr, "Bytes: %u", (unsigned int)(nitems * size)); in writecb() 39 for(i = 0; i < nitems; i++) in writecb() 41 return nitems; in writecb()
|
/curl/tests/libtest/ |
H A D | lib2301.c | 94 static size_t writecb(char *b, size_t size, size_t nitems, void *p) in writecb() argument 103 size_t incoming = nitems; in writecb() 105 (int)nitems); in writecb() 106 for(i = 0; i < nitems; i++) in writecb() 115 nitems = 0; in writecb() 117 if(nitems != incoming) in writecb() 119 return nitems; in writecb()
|
H A D | lib537.c | 124 rlim_t nitems, i; local 226 for(nitems = i = 1; nitems <= i; i *= 2) 227 nitems = i; 228 if(nitems > 0x7fff) 229 nitems = 0x40000; 237 nitems /= 2; 250 for(i = 0; i < nitems; i++) 265 for(nitems = i = 1; nitems <= i; i *= 2) 266 nitems = i; 267 if(nitems > 0x7fff) [all …]
|
H A D | lib518.c | 125 rlim_t nitems, i; in test_rlimit() local 246 for(nitems = i = 1; nitems <= i; i *= 2) in test_rlimit() 247 nitems = i; in test_rlimit() 248 if(nitems > 0x7fff) in test_rlimit() 249 nitems = 0x40000; in test_rlimit() 251 num_open.rlim_max = sizeof(*memchunk) * nitems; in test_rlimit() 254 memchunk = malloc(sizeof(*memchunk) * (size_t)nitems); in test_rlimit() 257 nitems /= 2; in test_rlimit() 259 } while(nitems && !memchunk); in test_rlimit() 270 for(i = 0; i < nitems; i++) in test_rlimit()
|
H A D | lib2302.c | 79 static size_t writecb(char *buffer, size_t size, size_t nitems, void *p) in writecb() argument 82 size_t incoming = nitems; in writecb() 89 if(nitems != incoming) in writecb() 91 return nitems; in writecb()
|
H A D | lib1971.c | 28 static size_t read_callback(char *buffer, size_t size, size_t nitems, in read_callback() argument 33 (void)nitems; /* unused */ in read_callback()
|
H A D | lib1975.c | 28 static size_t read_callback(char *buffer, size_t size, size_t nitems, in read_callback() argument 33 (void)nitems; /* unused */ in read_callback()
|
H A D | lib1518.c | 30 static size_t writecb(char *buffer, size_t size, size_t nitems, in writecb() argument 35 (void)nitems; in writecb()
|
H A D | lib1533.c | 53 static size_t read_callback(char *ptr, size_t size, size_t nitems, in read_callback() argument 60 size_t totalsize = nitems * size; in read_callback()
|
/curl/docs/libcurl/ |
H A D | curl_mime_data_cb.md | 28 size_t readfunc(char *buffer, size_t size, size_t nitems, void *arg); 65 should be filled up with at most *size* multiplied with *nitems* number 119 size_t read_callback(char *buffer, size_t size, size_t nitems, void *arg) 124 nitems *= size; 125 if(sz > nitems) 126 sz = nitems;
|
H A D | curl_ws_meta.md | 114 size_t size, size_t nitems, void *p)
|
H A D | libcurl-tutorial.md | 322 size_t function(char *bufptr, size_t size, size_t nitems, void *userp); 325 and *size*nitems* is the size of the buffer and therefore also the maximum
|
/curl/docs/libcurl/opts/ |
H A D | CURLOPT_HEADERFUNCTION.md | 31 size_t nitems, 47 of that data is *nitems*; *size* is always 1. The provided header line is not 110 size_t nitems, void *userdata) 112 /* received header is nitems * size long in 'buffer' NOT ZERO TERMINATED */ 114 return nitems * size;
|
H A D | CURLOPT_HEADERDATA.md | 58 size_t nitems, void *userdata) 64 return nitems * size;
|
H A D | CURLOPT_READFUNCTION.md | 28 size_t read_callback(char *buffer, size_t size, size_t nitems, void *userdata); 40 filled up with at most *size* multiplied with *nitems* number of bytes
|
/curl/src/ |
H A D | tool_formparse.c | 179 size_t size, size_t nitems, void *arg) in tool_mime_stdin_read() argument 189 if(curlx_uztoso(nitems) > bytesleft) in tool_mime_stdin_read() 190 nitems = curlx_sotouz(bytesleft); in tool_mime_stdin_read() 192 if(nitems) { in tool_mime_stdin_read() 195 memcpy(buffer, sip->data + curlx_sotouz(sip->curpos), nitems); in tool_mime_stdin_read() 199 nitems = fread(buffer, 1, nitems, stdin); in tool_mime_stdin_read() 209 sip->curpos += curlx_uztoso(nitems); in tool_mime_stdin_read() 211 return nitems; in tool_mime_stdin_read()
|
H A D | tool_formparse.h | 62 size_t size, size_t nitems, void *arg);
|
/curl/lib/ |
H A D | mime.c | 64 static size_t mime_subparts_read(char *buffer, size_t size, size_t nitems, 662 static size_t mime_mem_read(char *buffer, size_t size, size_t nitems, in mime_mem_read() argument 669 if(!nitems) in mime_mem_read() 672 if(sz > nitems) in mime_mem_read() 673 sz = nitems; in mime_mem_read() 724 if(!nitems) in mime_file_read() 730 return fread(buffer, size, nitems, part->fp); in mime_file_read() 1008 while(nitems) { in mime_subparts_read() 1042 sz = readback_part(part, buffer, nitems, hasread); in mime_subparts_read() 1063 nitems -= sz; in mime_subparts_read() [all …]
|
H A D | mime.h | 154 size_t Curl_mime_read(char *buffer, size_t size, size_t nitems,
|
/curl/tests/http/clients/ |
H A D | hx-upload.c | 177 static size_t my_write_cb(char *buf, size_t nitems, size_t buflen, in my_write_cb() argument 181 size_t blen = (nitems * buflen); in my_write_cb() 194 nwritten = fwrite(buf, nitems, buflen, t->out); in my_write_cb() 203 static size_t my_read_cb(char *buf, size_t nitems, size_t buflen, in my_read_cb() argument 207 size_t blen = (nitems * buflen); in my_read_cb()
|
H A D | hx-download.c | 174 static size_t my_write_cb(char *buf, size_t nitems, size_t buflen, in my_write_cb() argument 178 size_t blen = (nitems * buflen); in my_write_cb() 199 nwritten = fwrite(buf, nitems, buflen, t->out); in my_write_cb()
|
/curl/.github/scripts/ |
H A D | spellcheck.words | 563 nitems
|
/curl/include/curl/ |
H A D | curl.h | 278 size_t nitems, 397 size_t nitems,
|