/curl/lib/ |
H A D | strtoofft.c | 73 static int get_char(char c, int base); 111 if(base == 16 || base == 0) { in strtooff() 113 base = 16; in strtooff() 117 if(base == 8 || base == 0) { in strtooff() 119 base = 8; in strtooff() 126 if(base == 0) { in strtooff() 127 base = 10; in strtooff() 131 for(i = get_char(end[0], base); in strtooff() 139 value = base * value + i; in strtooff() 173 static int get_char(char c, int base) in get_char() argument [all …]
|
H A D | inet_ntop.c | 99 int base; in inet_ntop6() member 113 best.base = -1; in inet_ntop6() 114 cur.base = -1; in inet_ntop6() 120 if(cur.base == -1) { in inet_ntop6() 126 else if(cur.base != -1) { in inet_ntop6() 129 cur.base = -1; in inet_ntop6() 132 if((cur.base != -1) && (best.base == -1 || cur.len > best.len)) in inet_ntop6() 135 best.base = -1; in inet_ntop6() 140 if(best.base != -1 && i >= best.base && i < (best.base + best.len)) { in inet_ntop6() 141 if(i == best.base) in inet_ntop6() [all …]
|
H A D | amigaos.c | 81 struct Library *base = OpenLibrary("bsdsocket.library", 4); in Curl_amiga_init() local 83 if(base) { in Curl_amiga_init() 84 ISocket = (struct SocketIFace *)GetInterface(base, "main", 1, NULL); in Curl_amiga_init() 102 CloseLibrary(base); in Curl_amiga_init() 111 struct Library *base = __CurlISocket->Data.LibBase; in Curl_amiga_cleanup() local 113 CloseLibrary(base); in Curl_amiga_cleanup() 155 struct Library *base = OpenLibrary("bsdsocket.library", 4); in Curl_ipv4_resolve_r() local 156 if(base) { in Curl_ipv4_resolve_r() 157 ISocket = (struct SocketIFace *)GetInterface(base, "main", 1, NULL); in Curl_ipv4_resolve_r() 165 CloseLibrary(base); in Curl_ipv4_resolve_r()
|
H A D | strtoofft.h | 51 CURLofft curlx_strtoofft(const char *str, char **endp, int base,
|
H A D | mprintf.c | 773 base = 8; in formatf() 779 base = 16; in formatf() 784 base = 10; in formatf() 789 base = 10; in formatf() 807 switch(base) { in formatf() 816 *w-- = digits[num % base]; in formatf() 817 num /= base; in formatf() 824 if(is_alt && base == 8 && prec <= 0) { in formatf() 835 if(is_alt && base == 16) in formatf() 852 if(is_alt && base == 16) { in formatf() [all …]
|
H A D | mime.c | 362 char *base; in strippath() local 367 base = strdup(basename(filename)); in strippath() 371 return base; /* returns an allocated string or NULL ! */ in strippath() 1415 char *base; in curl_mime_filedata() local 1439 base = strippath(filename); in curl_mime_filedata() 1440 if(!base) in curl_mime_filedata() 1443 result = curl_mime_filename(part, base); in curl_mime_filedata() 1444 free(base); in curl_mime_filedata()
|
/curl/docs/examples/ |
H A D | multi-event.c | 35 struct event_base *base; variable 54 context->event = event_new(base, sockfd, 0, curl_perform, context); in create_curl_context() 191 event_assign(curl_context->event, base, curl_context->sockfd, events, in handle_socket() 220 base = event_base_new(); in main() 221 timeout = evtimer_new(base, on_timeout, NULL); in main() 231 event_base_dispatch(base); in main() 235 event_base_free(base); in main()
|
/curl/packages/vms/ |
H A D | pcsi_product_gnv_curl.com | 117 $ base = f$element(1, "-", kit_name) 137 $! Move to the base directories 157 $ base = "" 158 $ if arch_name .eqs. "ALPHA" then base = "AXPVMS" 159 $ if arch_name .eqs. "IA64" then base = "I64VMS" 160 $ if arch_name .eqs. "VAX" then base = "VAXVMS" 162 $ if base .eqs. "" then exit 44 172 /base='base' - 191 /version='version'/base='base'
|
H A D | make_pcsi_curl_kit_name.com | 176 $! Write out a logical name for the resulting base kit name.
|
H A D | backup_gnv_curl_src.com | 96 $! Move to the base directories
|
H A D | build_libcurl_pc.com | 38 $ base = f$element(1, "-", kit_name)
|
H A D | build_gnv_curl_pcsi_text.com | 54 $ base = f$element(1, "-", kit_name)
|
H A D | clean_gnv_curl.com | 38 $! Move to where the base directory is.
|
/curl/src/ |
H A D | tool_doswin.c | 445 char *p, *base; in rename_if_reserved_dos() local 474 base = basename(fname); in rename_if_reserved_dos() 481 for(p = fname; p; p = (p == fname && fname != base ? base : NULL)) { in rename_if_reserved_dos() 526 base = basename(fname); in rename_if_reserved_dos() 537 if(base && ((stat(base, &st_buf)) == 0) && (S_ISCHR(st_buf.st_mode))) { in rename_if_reserved_dos() 539 size_t blen = strlen(base); in rename_if_reserved_dos() 543 memmove(base + 1, base, blen + 1); in rename_if_reserved_dos() 544 base[0] = '_'; in rename_if_reserved_dos()
|
H A D | tool_paramhlp.c | 165 static ParameterError getnum(long *val, const char *str, int base) in getnum() argument 173 num = strtol(str, &endptr, base); in getnum()
|
/curl/tests/data/ |
H A D | test1176 | 37 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o '%LOGDIR/base-#0' 51 <file name="%LOGDIR/base-#0">
|
/curl/tests/libtest/ |
H A D | lib570.c | 28 static char *suburl(const char *base, int i) in suburl() argument 30 return curl_maprintf("%s%.4d", base, i); in suburl()
|
H A D | lib569.c | 28 static char *suburl(const char *base, int i) in suburl() argument 30 return curl_maprintf("%s%.4d", base, i); in suburl()
|
H A D | lib568.c | 36 static char *suburl(const char *base, int i) in suburl() argument 38 return curl_maprintf("%s%.4d", base, i); in suburl()
|
H A D | lib572.c | 36 static char *suburl(const char *base, int i) in suburl() argument 38 return curl_maprintf("%s%.4d", base, i); in suburl()
|
H A D | lib571.c | 98 static char *suburl(const char *base, int i) in suburl() argument 100 return curl_maprintf("%s%.4d", base, i); in suburl()
|
H A D | lib506.c | 168 static char *suburl(const char *base, int i) in suburl() argument 170 return curl_maprintf("%s%.4d", base, i); in suburl()
|
/curl/packages/OS400/ |
H A D | os400sys.c | 580 Curl_ldap_search_s_a(void *ld, char *base, int scope, char *filter, in Curl_ldap_search_s_a() argument 595 if(base) { in Curl_ldap_search_s_a() 596 i = strlen(base); in Curl_ldap_search_s_a() 602 QadrtConvertA2E(ebase, base, i, i); in Curl_ldap_search_s_a()
|
/curl/docs/libcurl/ |
H A D | curl_mime_filedata.md | 44 As a side effect, the part's remote filename is set to the base name of the
|
/curl/lib/vquic/ |
H A D | curl_ngtcp2.c | 1032 (const char *)h3val.base, h3val.len); in cb_h3_recv_header() 1039 (const char *)h3val.base, h3val.len); in cb_h3_recv_header() 1054 stream_id, (int)h3name.len, h3name.base, in cb_h3_recv_header() 1055 (int)h3val.len, h3val.base); in cb_h3_recv_header() 1058 (const char *)h3name.base, h3name.len); in cb_h3_recv_header() 1063 (const char *)h3val.base, h3val.len); in cb_h3_recv_header() 1349 (const unsigned char **)&vec[nvecs].base, in cb_h3_read_req_body()
|