int libntfs_version(){ #ifdef NTFS printf("%s\n", ntfs_libntfs_version()); return 0; #endif return 1; }
/** * version - Print version information about the program * * Print a copyright statement and a brief description of the program. * * Return: none */ static void version(void) { ntfs_log_info("\n%s v%s (libntfs %s) - Display, or set, the label for an " "NTFS Volume.\n\n", EXEC_NAME, VERSION, ntfs_libntfs_version()); ntfs_log_info("Copyright (c)\n"); ntfs_log_info(" 2002 Matthew J. Fanto\n"); ntfs_log_info(" 2002-2005 Anton Altaparmakov\n"); ntfs_log_info(" 2002-2003 Richard Russon\n"); ntfs_log_info("\n%s\n%s%s\n", ntfs_gpl, ntfs_bugs, ntfs_home); }
const char*td_ntfs_version(void) { #ifdef HAVE_LIBNTFS #ifdef HAVE_NTFS_LIBNTFS_VERSION return ntfs_libntfs_version(); #else return "available"; #endif #elif defined(HAVE_LIBNTFS3G) return "libntfs-3g"; #else return "none"; #endif }