Remove 3 yaz_log from old ber_oct code
[yaz-moved-to-github.git] / src / version.c
1 /* This file is part of the YAZ toolkit.
2  * Copyright (C) 1995-2013 Index Data
3  * See the file LICENSE for details.
4  */
5
6 /**
7  * \file version.c
8  * \brief Implements YAZ version utilities.
9  */
10
11 #if HAVE_CONFIG_H
12 #include <config.h>
13 #endif
14
15 #include <string.h>
16 #include <yaz/yaz-version.h>
17
18 unsigned long yaz_version(char *version_str, char *sha1_str)
19 {
20     if (version_str)
21         strcpy(version_str, YAZ_VERSION);
22     if (sha1_str)
23         strcpy(sha1_str, YAZ_VERSION_SHA1);
24     return YAZ_VERSIONL;
25 }
26 /*
27  * Local variables:
28  * c-basic-offset: 4
29  * c-file-style: "Stroustrup"
30  * indent-tabs-mode: nil
31  * End:
32  * vim: shiftwidth=4 tabstop=8 expandtab
33  */
34