Commit a8c86d5a authored by Federico Vaga's avatar Federico Vaga

lib: add error function

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 0ec7a2c3
......@@ -36,6 +36,14 @@ static int ft_nboards; /**< number of available boards */
static char *names[] = { "seconds", "coarse" }; /**< names used to retrive
time-stamps from sysfs */
/**
* It returns the error message associated to the given error code
*/
char *fmctdc_strerror(int err)
{
return strerror(err);
}
/**
* Init the library. You must call this function before use any other
......
......@@ -58,6 +58,7 @@ static inline int _fmctdc_tscmp(struct fmctdc_time *a, struct fmctdc_time *b)
/**
* @file fmctdc-lib.c
*/
extern char *fmctdc_strerror(int err);
extern int fmctdc_init(void);
extern void fmctdc_exit(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment