Changed include/yaz/diagbib1.h and added include/yaz/diagsrw.h with
[yaz-moved-to-github.git] / src / version.c
1 /*
2  * Copyright (C) 1995-2005, Index Data ApS
3  * See the file LICENSE for details.
4  *
5  * $Id: version.c,v 1.3 2005-01-15 19:47:14 adam Exp $
6  */
7
8 /**
9  * \file version.c
10  * \brief Implements YAZ version utilities.
11  */
12
13 /**
14  * \mainpage The YAZ Toolkit.
15  */
16  
17 #if HAVE_CONFIG_H
18 #include <config.h>
19 #endif
20
21 #include <string.h>
22 #include <yaz/yaz-version.h>
23
24 unsigned long yaz_version(char *version_str, char *sys_str)
25 {
26     if (version_str)
27         strcpy(version_str, YAZ_VERSION);
28     if (sys_str)
29         strcpy(sys_str, "");
30     return YAZ_VERSIONL;
31 }