curl_version.3 793 B

12345678910111213141516171819202122232425262728293031
  1. .\" generated by cd2nroff 0.1 from curl_version.md
  2. .TH curl_version 3 "2025-01-17" libcurl
  3. .SH NAME
  4. curl_version \- returns the libcurl version string
  5. .SH SYNOPSIS
  6. .nf
  7. #include <curl/curl.h>
  8. char *curl_version();
  9. .fi
  10. .SH DESCRIPTION
  11. Returns a human readable string with the version number of libcurl and some of
  12. its important components (like OpenSSL version).
  13. We recommend using \fIcurl_version_info(3)\fP instead!
  14. .SH PROTOCOLS
  15. This functionality affects all supported protocols
  16. .SH EXAMPLE
  17. .nf
  18. int main(void)
  19. {
  20. printf("libcurl version %s\\n", curl_version());
  21. }
  22. .fi
  23. .SH AVAILABILITY
  24. Added in curl 7.1
  25. .SH RETURN VALUE
  26. A pointer to a null\-terminated string. The string resides in a statically
  27. allocated buffer and must not be freed by the caller.
  28. .SH SEE ALSO
  29. .BR curl_version_info (3)