1COMEDI_STRERROR(3)                                          COMEDI_STRERROR(3)
2
3
4

NAME

6       comedi_strerror - return string describing Comedilib error code
7

SYNOPSIS

9       #include <comedilib.h>
10
11       char * comedi_strerror (int errnum);
12

DESCRIPTION

14       When a Comedilib function fails, it usually returns -1 or NULL, depend‐
15       ing on the return type.  An internal library variable stores  an  error
16       number,  which can be retrieved with comedi_errno().  This error number
17       can be converted to a human-readable form by the functions  comedi_per‐
18       ror() and comedi_strerror().
19
20       These  functions  are  intended to mimic the behavior of the standard C
21       library functions perror(),  strerror(),  and  errno.   In  particular,
22       Comedilib  functions sometimes return an error that is generated inside
23       the C library; the comedi error message in this case is the same as the
24       C library.
25
26       The  function comedi_strerror() returns a pointer to a character string
27       describing the Comedilib error errnum.  The persistence of the returned
28       pointer  is  undefined,  and  should  not  be  trusted  after  the next
29       Comedilib call.  An unrecognized error number will return a pointer  to
30       the string "undefined error", or similar.
31
32                                28 October 2007             COMEDI_STRERROR(3)
Impressum