MGE General C Library - API Documentation  v1.7.4
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  * 16/09/2022 MG 1.0.8 Rename of portability.h *
29  * *
30  ************************************************************************
31  */
32 
33 #ifndef LIBMGEC_H
34 #define LIBMGEC_H
35 
37 
39 
44 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
45 
46 char *libmgec_get_pkg_version(void);
47 
48 char *libmgec_get_src_version(void);
49 
50 void libmgec_print_pkg_version(void);
51 
52 void libmgec_print_src_version(void);
53 
55 
56 #endif /* ndef LIBMGEC_H */
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: mge-portability.h:48
#define END_C_DECLS
Use END_C_DECLS at the end of C declarations.
Definition: mge-portability.h:52