xtc_version_string(3)

---

xtc_version_string(3)

return the xtc library version as a SemVer string

XTC_VERSION_STRING(3) Library Functions Manual XTC_VERSION_STRING(3)

xtc_version_stringreturn the xtc library version as a SemVer string

#include <xtc.h>

const char *
xtc_version_string(void);

The () function returns the xtc library version as a NUL-terminated string in format (“major.minor.patch optionally followed by “-prerelease””). The returned pointer is to static storage and must not be freed.

The string always begins with the same numeric components reported by xtc_version_components(3). This invariant is asserted by the M0 test suite (see M0_CLAIMS.md section [C3]).

A non-NULL pointer to a NUL-terminated string. The string contents are stable for the lifetime of the process and across all calls.

#include <stdio.h>
#include <xtc.h>

int main(void) {
        printf("xtc %s\n", xtc_version_string());
        return 0;
}

xtc(7), xtc_version_components(3), xtc_strerror(3)

The version string conforms to SemVer 2.0.

First appeared in xtc 0.0.1.

May 25, 2026 Debian

View the mdoc source