Source restructure. yaz-marcdump part of installation
[yaz-moved-to-github.git] / src / version.c
diff --git a/src/version.c b/src/version.c
new file mode 100644 (file)
index 0000000..a819d2c
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 1995-2003, Index Data.
+ * See the file LICENSE for details.
+ * Sebastian Hammer, Adam Dickmeiss
+ *
+ * $Id: version.c,v 1.1 2003-10-27 12:21:36 adam Exp $
+ */
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <string.h>
+#include <yaz/yaz-version.h>
+
+unsigned long yaz_version(char *version_str, char *sys_str)
+{
+    if (version_str)
+        strcpy(version_str, YAZ_VERSION);
+    if (sys_str)
+        strcpy(sys_str, "");
+    return YAZ_VERSIONL;
+}