2 * version.c --- Return the version of the blkid library
4 * Copyright (C) 2004 Theodore Ts'o.
7 * This file may be redistributed under the terms of the GNU Public
21 static const char *lib_version = E2FSPROGS_VERSION;
22 static const char *lib_date = E2FSPROGS_DATE;
24 int blkid_parse_version_string(const char *ver_string)
29 for (cp = ver_string; *cp; cp++) {
34 version = (version * 10) + (*cp - '0');
39 int blkid_get_library_version(const char **ver_string,
40 const char **date_string)
43 *ver_string = lib_version;
45 *date_string = lib_date;
47 return blkid_parse_version_string(lib_version);