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
20 #include "../../version.h"
22 static const char *lib_version = E2FSPROGS_VERSION;
23 static const char *lib_date = E2FSPROGS_DATE;
25 int blkid_parse_version_string(const char *ver_string)
30 for (cp = ver_string; *cp; cp++) {
35 version = (version * 10) + (*cp - '0');
40 int blkid_get_library_version(const char **ver_string,
41 const char **date_string)
44 *ver_string = lib_version;
46 *date_string = lib_date;
48 return blkid_parse_version_string(lib_version);