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) |
NAME
xtc_version_string —
return the xtc library version as a SemVer
string
SYNOPSIS
#include
<xtc.h>
const char *
xtc_version_string(void);
DESCRIPTION
The
xtc_version_string()
function returns the xtc library version as a NUL-terminated string in
SemVer
2.0 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]).
RETURN VALUES
A non-NULL pointer to a NUL-terminated string. The string contents are stable for the lifetime of the process and across all calls.
EXAMPLES
#include <stdio.h>
#include <xtc.h>
int main(void) {
printf("xtc %s\n", xtc_version_string());
return 0;
}
SEE ALSO
STANDARDS
The version string conforms to SemVer 2.0.
HISTORY
First appeared in xtc 0.0.1.
| May 25, 2026 | Debian |