MGE General C Library - API Documentation  v1.6.8
Library of general C functions.
libmgec.h File Reference

Header file for the libmgec shared library. More...

#include <portability.h>
Include dependency graph for libmgec.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ARRAY_SIZE(x)   (sizeof(x) / sizeof((x)[0]))
 A simple macro to standardise on the preferred method of determining the size of an array. More...
 

Functions

char * libmgec_get_pkg_version (void)
 Get the git-describe based package version. More...
 
char * libmgec_get_src_version (void)
 Get the source version. More...
 
void libmgec_print_pkg_version (void)
 Print the package version string to stdout. More...
 
void libmgec_print_src_version (void)
 Print the source version string to stdout. More...
 

Detailed Description

Header file for the libmgec shared library.

Author
Copyright (C) 2015-2019, 2021, 2022 Mark Grant

Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0-only

Version
v1.0.7 ==== 09/06/2022

Macro Definition Documentation

◆ ARRAY_SIZE

#define ARRAY_SIZE (   x)    (sizeof(x) / sizeof((x)[0]))

A simple macro to standardise on the preferred method of determining the size of an array.

Function Documentation

◆ libmgec_get_pkg_version()

char* libmgec_get_pkg_version ( void  )

Get the git-describe based package version.

Returns
The package version string.

◆ libmgec_get_src_version()

char* libmgec_get_src_version ( void  )

Get the source version.

Returns
The source version string.

◆ libmgec_print_pkg_version()

void libmgec_print_pkg_version ( void  )

Print the package version string to stdout.

◆ libmgec_print_src_version()

void libmgec_print_src_version ( void  )

Print the source version string to stdout.