curl_easy_init.3 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. .\" $Id$
  2. .\"
  3. .TH curl_easy_init 3 "4 March 2002" "libcurl 7.8.1" "libcurl Manual"
  4. .SH NAME
  5. curl_easy_init - Start a libcurl easy session
  6. .SH SYNOPSIS
  7. .B #include <curl/curl.h>
  8. .BI "CURL *curl_easy_init( );"
  9. .SH DESCRIPTION
  10. This function must be the first function to call, and it returns a CURL easy
  11. handle that you must use as input to other easy-functions. curl_easy_init
  12. initializes curl and this call \fBMUST\fP have a corresponding call to
  13. \fIcurl_easy_cleanup(3)\fP when the operation is complete.
  14. If you did not already call \fIcurl_global_init(3)\fP,
  15. \fIcurl_easy_init(3)\fP does it automatically.
  16. This may be lethal in multi-threaded cases, since \fIcurl_global_init(3)\fP is
  17. not thread-safe, and it may result in resource problems because there is
  18. no corresponding cleanup.
  19. You are strongly advised to not allow this automatic behaviour, by
  20. calling \fIcurl_global_init(3)\fP yourself properly.
  21. See the description in \fBlibcurl\fP(3) of global environment
  22. requirements for details of how to use this function.
  23. .SH RETURN VALUE
  24. If this function returns NULL, something went wrong and you cannot use the
  25. other curl functions.
  26. .SH "SEE ALSO"
  27. .BR curl_easy_cleanup "(3), " curl_global_init "(3), " curl_easy_reset "(3)"