/curl/tests/libtest/ |
H A D | lib1509.c | 30 size_t WriteOutput(char *ptr, size_t size, size_t nmemb, void *stream); 31 size_t WriteHeader(char *ptr, size_t size, size_t nmemb, void *stream); 85 size_t WriteOutput(char *ptr, size_t size, size_t nmemb, void *stream) in WriteOutput() argument 87 fwrite(ptr, size, nmemb, stream); in WriteOutput() 88 return nmemb * size; in WriteOutput() 91 size_t WriteHeader(char *ptr, size_t size, size_t nmemb, void *stream) in WriteHeader() argument 96 realHeaderSize += curlx_uztoul(size * nmemb); in WriteHeader() 98 return nmemb * size; in WriteHeader()
|
H A D | lib1485.c | 38 static size_t header_callback(char *ptr, size_t size, size_t nmemb, in header_callback() argument 43 size_t len = size * nmemb; in header_callback() 46 (void)fwrite(ptr, size, nmemb, stdout); in header_callback() 80 static size_t write_callback(char *ptr, size_t size, size_t nmemb, void *userp) in write_callback() argument 83 size_t len = size * nmemb; in write_callback() 84 fwrite(ptr, size, nmemb, stdout); in write_callback()
|
H A D | lib1540.c | 60 static size_t header_callback(char *ptr, size_t size, size_t nmemb, in header_callback() argument 63 size_t len = size * nmemb; in header_callback() 65 (void)fwrite(ptr, size, nmemb, stdout); in header_callback() 69 static size_t write_callback(char *ptr, size_t size, size_t nmemb, void *userp) in write_callback() argument 72 size_t len = size * nmemb; in write_callback() 77 fwrite(ptr, size, nmemb, stdout); in write_callback()
|
H A D | lib1541.c | 80 static size_t header_callback(char *ptr, size_t size, size_t nmemb, in header_callback() argument 84 size_t len = size * nmemb; in header_callback() 99 (void)fwrite(ptr, size, nmemb, stdout); in header_callback() 103 static size_t write_callback(char *ptr, size_t size, size_t nmemb, void *userp) in write_callback() argument 109 fwrite(ptr, size, nmemb, stdout); in write_callback() 110 return size * nmemb; in write_callback()
|
H A D | lib1556.c | 34 static size_t header(char *ptr, size_t size, size_t nmemb, void *stream) in header() argument 36 size_t headersize = size * nmemb; in header() 44 return nmemb * size; in header()
|
H A D | lib1520.c | 52 static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *userp) in read_callback() argument 57 if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) { in read_callback()
|
H A D | lib2308.c | 30 static size_t cb_curl(char *buffer, size_t size, size_t nmemb, void *userp) in cb_curl() argument 34 (void)nmemb; in cb_curl()
|
H A D | lib510.c | 41 static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *userp) in read_callback() argument 46 if(size*nmemb < 1) in read_callback() 53 if(size*nmemb < len) { in read_callback()
|
H A D | lib552.c | 131 static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *stream) in read_callback() argument 133 size_t amount = nmemb * size; /* Total bytes curl wants */ in read_callback() 144 static size_t write_callback(char *ptr, size_t size, size_t nmemb, in write_callback() argument 147 int amount = curlx_uztosi(size * nmemb); in write_callback() 150 return size * nmemb; in write_callback()
|
H A D | lib668.c | 35 static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *userp) in read_callback() argument 42 if(len > nmemb) in read_callback() 43 len = nmemb; in read_callback()
|
H A D | lib513.c | 28 static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *userp) in read_callback() argument 32 (void)nmemb; in read_callback()
|
H A D | lib2309.c | 30 static size_t cb_ignore(char *buffer, size_t size, size_t nmemb, void *userp) in cb_ignore() argument 34 (void)nmemb; in cb_ignore()
|
/curl/docs/examples/ |
H A D | ftpuploadresume.c | 34 static size_t getcontentlengthfunc(void *ptr, size_t size, size_t nmemb, in getcontentlengthfunc() argument 44 return size * nmemb; in getcontentlengthfunc() 48 static size_t discardfunc(void *ptr, size_t size, size_t nmemb, void *stream) in discardfunc() argument 52 return size * nmemb; in discardfunc() 56 static size_t readfunc(char *ptr, size_t size, size_t nmemb, void *stream) in readfunc() argument 64 n = fread(ptr, size, nmemb, f) * size; in readfunc()
|
H A D | imap-append.c | 62 static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) in payload_source() argument 66 size_t room = size * nmemb; in payload_source() 68 if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) { in payload_source()
|
H A D | smtp-mail.c | 67 static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) in payload_source() argument 71 size_t room = size * nmemb; in payload_source() 73 if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) { in payload_source()
|
H A D | smtp-authzid.c | 70 static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) in payload_source() argument 74 size_t room = size * nmemb; in payload_source() 76 if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) { in payload_source()
|
H A D | smtp-multi.c | 60 static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) in payload_source() argument 64 size_t room = size * nmemb; in payload_source() 66 if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) { in payload_source()
|
H A D | smtp-tls.c | 64 static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) in payload_source() argument 68 size_t room = size * nmemb; in payload_source() 70 if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) { in payload_source()
|
H A D | smtp-ssl.c | 64 static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) in payload_source() argument 68 size_t room = size * nmemb; in payload_source() 70 if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) { in payload_source()
|
H A D | ftp-wildcard.c | 41 static size_t write_it(char *buff, size_t size, size_t nmemb, 141 static size_t write_it(char *buff, size_t size, size_t nmemb, in write_it() argument 147 written = fwrite(buff, size, nmemb, data->output); in write_it() 150 written = fwrite(buff, size, nmemb, stdout); in write_it()
|
H A D | url2file.c | 33 static size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream) in write_data() argument 35 size_t written = fwrite(ptr, size, nmemb, (FILE *)stream); in write_data()
|
H A D | ftpgetresp.c | 34 write_response(void *ptr, size_t size, size_t nmemb, void *data) in write_response() argument 37 return fwrite(ptr, size, nmemb, writehere); in write_response()
|
H A D | sepheaders.c | 33 static size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream) in write_data() argument 35 size_t written = fwrite(ptr, size, nmemb, (FILE *)stream); in write_data()
|
H A D | cacertinmem.c | 34 static size_t writefunction(void *ptr, size_t size, size_t nmemb, void *stream) in writefunction() argument 36 fwrite(ptr, size, nmemb, (FILE *)stream); in writefunction() 37 return (nmemb*size); in writefunction()
|
H A D | usercertinmem.c | 40 static size_t writefunction(void *ptr, size_t size, size_t nmemb, void *stream) in writefunction() argument 42 fwrite(ptr, size, nmemb, stream); in writefunction() 43 return (nmemb*size); in writefunction()
|