20 "http://curl.haxx.se/",
21 "ftp://cool.haxx.se/",
22 "http://www.contactor.se/",
47 int main(
int argc,
char **argv)
53 error = pthread_create(&tid[i],
58 fprintf(stderr,
"Couldn't run thread number %d, errno %d\n", i, error);
60 fprintf(stderr,
"Thread %d, gets %s\n", i,
urls[i]);
65 error = pthread_join(tid[i],
NULL);
66 fprintf(stderr,
"Thread %d terminated\n", i);
void * pull_one_url(void *url)
CURLcode curl_easy_perform(CURL *curl)
CURLcode curl_easy_setopt(CURL *curl, CURLoption option,...)
int main(int argc, char **argv)
void curl_easy_cleanup(CURL *curl)
CURL * curl_easy_init(void)