LibRan  0.1
Pseudo-random number distribution generator
Macros | Functions
LRversion.c File Reference

LibRan version info. More...

#include <string.h>
#include "libran.h"
Include dependency graph for LRversion.c:

Go to the source code of this file.

Macros

#define STRINGIFY(arg)   #arg
 LRversion(char *str) - return the given version info. More...
 
#define STRVAL(arg)   STRINGIFY(arg)
 

Functions

char * LRversion (char *str)
 

Detailed Description

LibRan version info.

Return the LibRan version info as a string.

The allowed set of input parameters are:

Parameter Description
version Full string (X.Y.Z)
major Major level (X)
minor Minor level (Y)
patch Patch number (Z)
date Version date (YYYYMMDD)

Definition in file LRversion.c.

Macro Definition Documentation

◆ STRINGIFY

#define STRINGIFY (   arg)    #arg

LRversion(char *str) - return the given version info.

See the above table of allowed parameters. Case is not important. Anything else will return a NULL string.

Parameters
strWhat info to return
Returns
char * Pointer to an internal string buffer.

Definition at line 39 of file LRversion.c.