---
name: "gnutls_check_version"
section: "3"
platform: "linux"
package: "gnutls"
version: "3.8.13-3"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/gnutls_check_version"
---

# gnutls\_check\_version(3)

API function

## NAME

gnutls\_check\_version - API function

## SYNOPSIS

**#include \<gnutls/gnutls.h\>**

**const char \* gnutls\_check\_version(const char \*** *req\_version***);**

## ARGUMENTS

- const char \* req\_version

  version string to compare with, or **NULL**.

## DESCRIPTION

Check the GnuTLS Library version against the provided string. See **GNUTLS\_VERSION** for a suitable  *req\_version* string.

See also **gnutls\_check\_version\_numeric()**, which provides this functionality as a macro.

## RETURNS

Check that the version of the library is at minimum the one given as a string in  *req\_version* and return the actual version string of the library; return **NULL** if the condition is not met.  If **NULL** is passed to this function no check is done and only the version string is returned.

## REPORTING BUGS

Report bugs to \<bugs@gnutls.org\>.\
 Home page: https://www.gnutls.org

## COPYRIGHT

Copyright © 2001-2023 Free Software Foundation, Inc., and others.\
 Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.

## SEE ALSO

The full documentation for **gnutls** is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form visit

- https://www.gnutls.org/manual/
