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