Version functions — functions to get the library version.
int mnt_parse_version_string (const char *ver_string);
const char *ver_string
ver_string
version string (e.g "2.18.0")
release version code.
int mnt_get_library_version (const char **ver_string);
const char **ver_string
return pointer to the static library version string if not NULL
release version number.
int mnt_get_library_features (const char ***features);
const char ***features
features
returns a pointer to the static array of strings, the array is terminated by NULL.
number of items in the features array not including the last NULL, or less than zero in case of error
Example:
1 2 3 4
const char **features; mnt_get_library_features(&features); while (features && *features) printf("%s\n", *features++);
#define LIBMOUNT_MAJOR_VERSION 2
#define LIBMOUNT_MINOR_VERSION 37
#define LIBMOUNT_PATCH_VERSION 4
#define LIBMOUNT_VERSION "2.37.4"