| * version.c --- Return the version of the ext2 library |
| * Copyright (C) 1997 Theodore Ts'o. |
| * This file may be redistributed under the terms of the GNU Public |
| static const char *lib_version = E2FSPROGS_VERSION; |
| static const char *lib_date = E2FSPROGS_DATE; |
| int ext2fs_parse_version_string(const char *ver_string) |
| for (cp = ver_string; *cp; cp++) { |
| version = (version * 10) + (*cp - '0'); |
| int ext2fs_get_library_version(const char **ver_string, |
| const char **date_string) |
| *ver_string = lib_version; |
| return ext2fs_parse_version_string(lib_version); |