YAZ  5.23.1
version.c
Go to the documentation of this file.
1 /* This file is part of the YAZ toolkit.
2  * Copyright (C) Index Data
3  * See the file LICENSE for details.
4  */
5 
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 
Defines YAZ version.
#define YAZ_VERSION_SHA1
SHA1 ID for YAZ (Git)
Definition: yaz-version.h:45
#define YAZ_VERSION
YAZ version as string.
Definition: yaz-version.h:36
#define YAZ_VERSIONL
YAZ version as integer (for comparison purposes)
Definition: yaz-version.h:39
unsigned long yaz_version(char *version_str, char *sha1_str)
returns YAZ version
Definition: version.c:18