Home
last modified time | relevance | path

Searched refs:nmemb (Results 1 – 25 of 114) sorted by relevance

12345

/curl/tests/libtest/
H A Dlib1509.c30 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 Dlib1485.c38 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 Dlib1540.c60 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 Dlib1541.c80 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 Dlib1556.c34 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 Dlib1520.c52 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 Dlib2308.c30 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 Dlib510.c41 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 Dlib552.c131 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 Dlib668.c35 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 Dlib513.c28 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 Dlib2309.c30 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 Dftpuploadresume.c34 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 Dimap-append.c62 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 Dsmtp-mail.c67 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 Dsmtp-authzid.c70 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 Dsmtp-multi.c60 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 Dsmtp-tls.c64 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 Dsmtp-ssl.c64 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 Dftp-wildcard.c41 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 Durl2file.c33 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 Dftpgetresp.c34 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 Dsepheaders.c33 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 Dcacertinmem.c34 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 Dusercertinmem.c40 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()

Completed in 30 milliseconds

12345