diff options
Diffstat (limited to 'docs/examples/pop3-multi.c')
-rw-r--r-- | docs/examples/pop3-multi.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/docs/examples/pop3-multi.c b/docs/examples/pop3-multi.c index 6df09a26..f932918e 100644 --- a/docs/examples/pop3-multi.c +++ b/docs/examples/pop3-multi.c @@ -5,11 +5,11 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms - * are also available at http://curl.haxx.se/docs/copyright.html. + * are also available at https://curl.haxx.se/docs/copyright.html. * * You may opt to use, copy, modify, merge, publish, distribute and/or sell * copies of the Software, and permit persons to whom the Software is @@ -19,7 +19,14 @@ * KIND, either express or implied. * ***************************************************************************/ + +/* <DESC> + * POP3 example using the multi interface + * </DESC> + */ + #include <stdio.h> +#include <string.h> #include <curl/curl.h> /* This is a simple example showing how to retrieve mail using libcurl's POP3 @@ -113,8 +120,7 @@ int main(void) /* get file descriptors from the transfers */ mc = curl_multi_fdset(mcurl, &fdread, &fdwrite, &fdexcep, &maxfd); - if(mc != CURLM_OK) - { + if(mc != CURLM_OK) { fprintf(stderr, "curl_multi_fdset() failed, code %d.\n", mc); break; } |