Version functions — functions to get the library version.
int fdisk_parse_version_string (const char *ver_string);
const char *ver_string
ver_string
version string (e.g "2.18.0")
release version code.
int fdisk_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 fdisk_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; fdisk_get_library_features(&features); while (features && *features) printf("%s\n", *features++);
#define LIBFDISK_MAJOR_VERSION 2
#define LIBFDISK_MINOR_VERSION 36
#define LIBFDISK_PATCH_VERSION 2
#define LIBFDISK_VERSION "2.36.2"
Library version string