• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2c: Copyright (C) Daniel Stenberg, <daniel.se>, et al.
3SPDX-License-Identifier: curl
4Title: curl_version
5Section: 3
6Source: libcurl
7See-also:
8  - curl_version_info (3)
9---
10
11# NAME
12
13curl_version - returns the libcurl version string
14
15# SYNOPSIS
16
17~~~c
18#include <curl/curl.h>
19
20char *curl_version();
21~~~
22
23# DESCRIPTION
24
25Returns a human readable string with the version number of libcurl and some of
26its important components (like OpenSSL version).
27
28We recommend using curl_version_info(3) instead!
29
30# EXAMPLE
31
32~~~c
33int main(void)
34{
35  printf("libcurl version %s\n", curl_version());
36}
37~~~
38
39# AVAILABILITY
40
41Always
42
43# RETURN VALUE
44
45A pointer to a null-terminated string. The string resides in a statically
46allocated buffer and must not be freed by the caller.
47