tiny_clipversion

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
EXAMPLES
NOTES
SEE ALSO
AUTHOR

NAME

tiny_clipversion - tinyclipboard version information

SYNOPSIS

#include <tinyclipboard.h>

#define TINYCLIPBOARD_VERSION

const char* tiny_clipversion(void);

DESCRIPTION

The tiny_clipversion() function gives information about the version of the tinyclipboard library in use, condensed into one string.

The TINYCLIPBOARD_VERSION macro provides the same information, but separated into components you can check against. It is defined as the version number as an ordinary number of form YYYYMMPPL, where YYYY denotes the year, MM denotes the month (with a leading zero if it is a month < 10), PP denotes the patch release number (again with a leading zero or even with two zeros for the first release in a month) and L is literal (i.e. denotes a long int constant value). For example, it may have the value 20160100L, which means the release was made in January 2016, and it was the first of any releases in January. If it had the value 20160101L, then it would be the second release in January 2016.

RETURN VALUE

This function returns a pointer to statically allocated memory that contains the version information as a NUL-terminated string that does not end with a newline. It must not be freed.

The macro is defined as a literal constant of type long int.

ERRORS

None.

EXAMPLES

None.

NOTES

The tinyclipboard library follows a simplistic versioning scheme that is mostly based on the release date. The version number is of form YY.MM, which refers to the shorted year and the number of the month the release was made in. If multiple releases are made in the same month, the version number becomes YY.MM.PP, where PP is the number of the followup release (PP can never be zero, as it then falls off). PP has no leading zeros, but MM has. Note that it it rather unlikely that I do more than nine releases in a month.

SEE ALSO

None.

AUTHOR

The tinyclipboard library was written by Marvin Gülker <m-guelker@guelkerdev.de>.