Commit 9d85d474 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

curl_version_info.3: returns a pointer to a static struct

And clarify that age 3 means 7.16.1 or later.
parent 1439dfb5
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -29,7 +29,7 @@ curl_version_info - returns run-time libcurl version info
.BI "curl_version_info_data *curl_version_info( CURLversion "type ");"
.BI "curl_version_info_data *curl_version_info( CURLversion "type ");"
.ad
.ad
.SH DESCRIPTION
.SH DESCRIPTION
Returns a pointer to a filled in struct with information about various
Returns a pointer to a filled in static struct with information about various
features in the running version of libcurl. \fItype\fP should be set to the
features in the running version of libcurl. \fItype\fP should be set to the
version of this functionality by the time you write your program. This way,
version of this functionality by the time you write your program. This way,
libcurl will always return a proper struct that your program understands,
libcurl will always return a proper struct that your program understands,
@@ -66,7 +66,8 @@ typedef struct {
  /* when 'age' is 2 or higher, the member below also exists: */
  /* when 'age' is 2 or higher, the member below also exists: */
  const char *libidn;       /* human readable string */
  const char *libidn;       /* human readable string */


  /* when 'age' is 3 or higher, the members below also exist: */
  /* when 'age' is 3 or higher (7.16.1 or later), the members below also
     exist  */
  int iconv_ver_num;       /* '_libiconv_version' if iconv support enabled */
  int iconv_ver_num;       /* '_libiconv_version' if iconv support enabled */


  const char *libssh_version; /* human readable string */
  const char *libssh_version; /* human readable string */