curl_version(3)

curl_version3

Returns the libcurl version string

Usage

#include <curl/curl.h>
char *curl_version();

Overview

Returns a human readable string with the version number of libcurl and some of its important components (like OpenSSL version).

We recommend using curl_version_info(3) instead!

Examples

int main(void)
{
  printf("libcurl version %s\n", curl_version());
}

Return value

A pointer to a null-terminated string. The string resides in a statically allocated buffer and must not be freed by the caller.

Releases

155 releases since Mac OS X 10.2; the text changed 20 times.

  1. 10.2–10.2.8
  2. 10.3–10.3.9
  3. 10.4–10.6.2
  4. 10.6.3–10.6.8
  5. 10.7–10.7.5
  6. 10.8–10.8.5
  7. 10.9–10.9.5
  8. 10.10–10.11.6
  9. 10.12–10.12.5
  10. 10.12.6–10.14.6
  11. 10.15–11.5
  12. 12.0.1–12.2
  13. 12.3–12.5
  14. 13.0
  15. 13.1
  16. 13.2
  17. 13.3
  18. 13.4
  19. 13.5–14.1
  20. 14.2–14.4
  21. 14.5–26.5

Availability

Always

From curl 166.0.0.0.1 in macOS 26.5. Parsed by carta from the page's man source.