Robot Control Library
Version

Description

macros and functions for getting the current version of librobotcontrol

Author
James Strawson
Date
2/8/2018

Macros

#define RC_LIB_VERSION_MAJOR   1
 
#define RC_LIB_VERSION_MINOR   0
 
#define RC_LIB_VERSION_PATCH   5
 
#define RC_LIB_VERSION_HEX
 

Functions

unsigned int rc_version (void)
 get an integer representation of the library version More...
 
const char * rc_version_string (void)
 gets a string representation of the current library version. More...
 
void rc_version_print (void)
 prints a string representation of the current library version to stdout with no trailing newline character. More...
 

Macro Definition Documentation

◆ RC_LIB_VERSION_MAJOR

#define RC_LIB_VERSION_MAJOR   1

◆ RC_LIB_VERSION_MINOR

#define RC_LIB_VERSION_MINOR   0

◆ RC_LIB_VERSION_PATCH

#define RC_LIB_VERSION_PATCH   5

◆ RC_LIB_VERSION_HEX

#define RC_LIB_VERSION_HEX
Value:
#define RC_LIB_VERSION_PATCH
Definition: version.h:23
#define RC_LIB_VERSION_MAJOR
Definition: version.h:21
#define RC_LIB_VERSION_MINOR
Definition: version.h:22

Function Documentation

◆ rc_version()

unsigned int rc_version ( void  )

get an integer representation of the library version

8 bits are used for each component, with the patch number stored in the 8 least significant bits. E.g. for version 1.2.3 this would be 0x010203.

Returns
integer representation of the library version

◆ rc_version_string()

const char* rc_version_string ( void  )

gets a string representation of the current library version.

Returns
const char* string

◆ rc_version_print()

void rc_version_print ( void  )

prints a string representation of the current library version to stdout with no trailing newline character.

Examples:
rc_test_drivers.c, and rc_version.c.