MGE General C Library - Full Internal Documentation  v1.6.8
Library of general C functions.
libmgec.h
Go to the documentation of this file.
1 
14 /* **********************************************************************
15  * *
16  * Changelog *
17  * *
18  * Date Author Version Description *
19  * *
20  * 06/08/2015 MG 1.0.1 First release. *
21  * 05/11/2017 MG 1.0.2 Add Doxygen comments. *
22  * 09/11/2017 MG 1.0.3 Add SPDX license tag. *
23  * 02/01/2018 MG 1.0.4 Move to new source directory structure. *
24  * 08/06/2019 MG 1.0.5 clang-format coding style changes. *
25  * 03/12/2021 MG 1.0.6 Tighten SPDX tag. *
26  * 09/06/2022 MG 1.0.7 Move array size macro here from the *
27  * internal header file. *
28  * *
29  ************************************************************************
30  */
31 
32 #ifndef LIBMGEC_H
33 #define LIBMGEC_H
34 
35 #include <portability.h>
36 
38 
43 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
44 
45 char *libmgec_get_pkg_version(void);
46 
47 char *libmgec_get_src_version(void);
48 
49 void libmgec_print_pkg_version(void);
50 
51 void libmgec_print_src_version(void);
52 
54 
55 #endif /* ndef LIBMGEC_H */
56 
char * libmgec_get_src_version(void)
Get the source version.
Definition: version.c:53
char * libmgec_get_pkg_version(void)
Get the git-describe based package version.
Definition: version.c:44
void libmgec_print_src_version(void)
Print the source version string to stdout.
Definition: version.c:69
void libmgec_print_pkg_version(void)
Print the package version string to stdout.
Definition: version.c:61
Header file to ease portability.
#define BEGIN_C_DECLS
BEGIN_C_DECLS should be used at the beginning of declarations so that C++ compilers don't mangle thei...
Definition: portability.h:47
#define END_C_DECLS
Use END_C_DECLS at the end of C declarations.
Definition: portability.h:51