changed output to be non-cascarding when using -n switch
[yaz-moved-to-github.git] / src / version.c
1 /*
2  * Copyright (C) 1995-2007, Index Data ApS
3  * See the file LICENSE for details.
4  *
5  * $Id: version.c,v 1.5 2007-01-03 08:42:15 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 }
32 /*
33  * Local variables:
34  * c-basic-offset: 4
35  * indent-tabs-mode: nil
36  * End:
37  * vim: shiftwidth=4 tabstop=8 expandtab
38  */
39