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 11--- 12 13# NAME 14 15curl_version - returns the libcurl version string 16 17# SYNOPSIS 18 19~~~c 20#include <curl/curl.h> 21 22char *curl_version(); 23~~~ 24 25# DESCRIPTION 26 27Returns a human readable string with the version number of libcurl and some of 28its important components (like OpenSSL version). 29 30We recommend using curl_version_info(3) instead! 31 32# EXAMPLE 33 34~~~c 35int main(void) 36{ 37 printf("libcurl version %s\n", curl_version()); 38} 39~~~ 40 41# AVAILABILITY 42 43Always 44 45# RETURN VALUE 46 47A pointer to a null-terminated string. The string resides in a statically 48allocated buffer and must not be freed by the caller. 49