Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 75) sorted by relevance

123

/curl/packages/OS400/
H A Dcurlmain.c46 extern int main_a(int argc, char * * argv);
53 int main(int argc, char **argv) in main() argument
70 ebcdic_argv = argv; in main()
77 inbuf = argv[i]; in main()
91 argv = (char **) malloc((argc + 1) * sizeof(*argv) + bytecount); in main()
94 outbuf = (char *) (argv + argc + 1); in main()
98 argv[i] = outbuf; in main()
106 argv[argc] = NULL; in main()
112 i = main_a(argc, argv); in main()
115 free((char *) argv); in main()
H A Dcurlcl.c59 size_t *argc, char **argv, in parse_command_line() argument
79 if(argv) in parse_command_line()
80 *argv++ = argbuf; in parse_command_line()
122 if(argv) in parse_command_line()
123 *argv = NULL; in parse_command_line()
133 char **argv; in main() local
156 argv = (char **) malloc((argc + 1) * sizeof(*argv) + argsize); in main()
157 if(!argv) { in main()
166 &argc, argv, &argsize, (char *) (argv + argc + 1)); in main()
169 _CALLPGMV((void *) &pgmptr, argv, argc); in main()
[all …]
/curl/docs/examples/
H A Dchkspeed.c64 int main(int argc, char *argv[]) in main() argument
70 char *appname = argv[0]; in main()
74 for(argc--, argv++; *argv; argc--, argv++) { in main()
75 if(argv[0][0] == '-') { in main()
76 switch(argv[0][1]) { in main()
102 if(argv[0][2] == '=') { in main()
103 long m = strtol((*argv) + 3, NULL, 10); in main()
128 appname, *argv + 3); in main()
134 appname, *argv); in main()
138 appname, *argv); in main()
[all …]
H A Dsynctime.c259 int main(int argc, char *argv[]) in main() argument
273 if(strncmp(argv[OptionIndex], "--server=", 9) == 0) in main()
274 snprintf(conf->timeserver, MAX_STRING, "%s", &argv[OptionIndex][9]); in main()
276 if(strcmp(argv[OptionIndex], "--showall") == 0) in main()
279 if(strcmp(argv[OptionIndex], "--synctime") == 0) in main()
282 if(strncmp(argv[OptionIndex], "--proxy-user=", 13) == 0) in main()
283 snprintf(conf->proxy_user, MAX_STRING, "%s", &argv[OptionIndex][13]); in main()
285 if(strncmp(argv[OptionIndex], "--proxy=", 8) == 0) in main()
286 snprintf(conf->http_proxy, MAX_STRING, "%s", &argv[OptionIndex][8]); in main()
288 if((strcmp(argv[OptionIndex], "--help") == 0) || in main()
[all …]
H A Durl2file.c39 int main(int argc, char *argv[]) in main() argument
46 printf("Usage: %s <URL>\n", argv[0]); in main()
56 curl_easy_setopt(curl_handle, CURLOPT_URL, argv[1]); in main()
H A Dhref_extractor.c55 int main(int argc, char *argv[]) in main() argument
62 printf("Usage: %s URL\n", argv[0]); in main()
76 curl_easy_setopt(curl, CURLOPT_URL, argv[1]); in main()
H A Dhttpput.c61 int main(int argc, char **argv) in main() argument
74 file = argv[1]; in main()
75 url = argv[2]; in main()
H A Danyauthput.c83 int main(int argc, char **argv) in main() argument
96 file = argv[1]; in main()
97 url = argv[2]; in main()
H A Dhttpput-postfields.c50 int main(int argc, char **argv) in main() argument
59 url = argv[1]; in main()
H A Dsslbackend.c43 int main(int argc, char **argv) in main() argument
45 const char *name = argc > 1 ? argv[1] : "openssl"; in main()
H A Dthreaded-ssl.c71 int main(int argc, char **argv) in main() argument
76 (void)argv; in main()
H A Dpostit2-formadd.c50 int main(int argc, char *argv[]) in main() argument
93 if((argc == 2) && (!strcmp(argv[1], "noexpectheader"))) in main()
H A Dpostit2.c46 int main(int argc, char *argv[]) in main() argument
83 if((argc == 2) && (!strcmp(argv[1], "noexpectheader"))) in main()
H A Dhtmltidy.c77 int main(int argc, char **argv) in main() argument
88 curl_easy_setopt(curl, CURLOPT_URL, argv[1]); in main()
127 printf("usage: %s <url>\n", argv[0]); in main()
H A Dhtmltitle.cpp257 int main(int argc, char *argv[]) in main() argument
266 fprintf(stderr, "Usage: %s <url>\n", argv[0]); in main()
274 if(!init(conn, argv[1])) { in main()
285 fprintf(stderr, "Failed to get '%s' [%s]\n", argv[1], errorBuffer); in main()
/curl/tests/server/
H A Dresolve.c63 int main(int argc, char *argv[]) in main() argument
70 if(!strcmp("--version", argv[arg])) { in main()
80 else if(!strcmp("--ipv6", argv[arg])) { in main()
85 else if(!strcmp("--ipv4", argv[arg])) { in main()
92 host = argv[arg++]; in main()
H A Dtestpart.c33 int main(int argc, char **argv) in main() argument
42 int rc = getpart(&part, &partlen, argv[1], argv[2], stdin); in main()
H A Ddisabled.c119 int main(int argc, char **argv) in main() argument
124 (void) argv; in main()
H A Dsocksd.c954 int main(int argc, char *argv[]) in main() argument
972 if(!strcmp("--version", argv[arg])) { in main()
985 pidname = argv[arg++]; in main()
990 portname = argv[arg++]; in main()
995 configfile = argv[arg++]; in main()
1000 backendaddr = argv[arg++]; in main()
1010 serverlogfile = argv[arg++]; in main()
1015 reqlogfile = argv[arg++]; in main()
1017 else if(!strcmp("--ipv6", argv[arg])) { in main()
1024 else if(!strcmp("--ipv4", argv[arg])) { in main()
[all …]
H A Dmqttd.c925 int main(int argc, char *argv[]) in main() argument
938 if(!strcmp("--version", argv[arg])) { in main()
951 pidname = argv[arg++]; in main()
956 portname = argv[arg++]; in main()
961 configfile = argv[arg++]; in main()
966 serverlogfile = argv[arg++]; in main()
971 logdir = argv[arg++]; in main()
973 else if(!strcmp("--ipv6", argv[arg])) { in main()
980 else if(!strcmp("--ipv4", argv[arg])) { in main()
993 if((endptr != argv[arg] + strlen(argv[arg])) || in main()
[all …]
H A Dsockfilt.c1353 int main(int argc, char *argv[]) in main() argument
1370 if(!strcmp("--version", argv[arg])) { in main()
1387 pidname = argv[arg++]; in main()
1392 portname = argv[arg++]; in main()
1397 serverlogfile = argv[arg++]; in main()
1399 else if(!strcmp("--ipv6", argv[arg])) { in main()
1406 else if(!strcmp("--ipv4", argv[arg])) { in main()
1418 else if(!strcmp("--port", argv[arg])) { in main()
1434 if((endptr != argv[arg] + strlen(argv[arg])) || in main()
1437 argv[arg]); in main()
[all …]
/curl/packages/vms/
H A Dreport_openssl_version.c43 int main(int argc, char **argv) in main() argument
54 libptr = dlopen(argv[1], 0); in main()
82 symbol_dsc.dsc$a_pointer = argv[2]; in main()
83 symbol_dsc.dsc$w_length = strlen(argv[2]); in main()
/curl/tests/libtest/
H A Dfirst.c137 int main(int argc, char **argv) in main() argument
164 test_argv = argv; in main()
180 test_name = argv[basearg - 1]; in main()
211 libtest_arg2 = argv[basearg + 1]; in main()
214 libtest_arg3 = argv[basearg + 2]; in main()
216 URL = argv[basearg]; /* provide this to the rest */ in main()
/curl/tests/http/clients/
H A Dws-pingpong.c125 int main(int argc, char *argv[]) in main() argument
136 url = argv[1]; in main()
137 payload = argv[2]; in main()
162 (void)argv; in main()
/curl/src/
H A Dtool_main.c225 int wmain(int argc, wchar_t *argv[]) in wmain() argument
227 int main(int argc, char *argv[]) in wmain()
239 if(argc == 2 && !_tcscmp(argv[1], _T("--dump-module-paths"))) { in wmain()
271 result = operate(&global, argc, argv); in wmain()

Completed in 47 milliseconds

123