]>
git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - lib/blkid/version.c
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
8 * GNU Lesser General Public License.
20 #include <blkid/blkid.h>
21 #include "../../version.h"
23 static const char *lib_version
= E2FSPROGS_VERSION
;
24 static const char *lib_date
= E2FSPROGS_DATE
;
26 int blkid_parse_version_string(const char *ver_string
)
31 for (cp
= ver_string
; *cp
; cp
++) {
36 version
= (version
* 10) + (*cp
- '0');
41 int blkid_get_library_version(const char **ver_string
,
42 const char **date_string
)
45 *ver_string
= lib_version
;
47 *date_string
= lib_date
;
49 return blkid_parse_version_string(lib_version
);