nodeupdown_errnum(3) - Linux man page
Name
nodeupdown_errnum, nodeupdown_strerror, nodeupdown_errormsg, nodeupdown_perror - nodeupdown error routines
Synopsis
#include <nodeupdown.h>
int nodeupdown_errnum(nodeupdown_t handle);
char *nodeupdown_strerror(int errnum);
char *nodeupdown_errormsg(nodeupdown_t handle);
void nodeupdown_perror(nodeupdown_t handle, const char *msg);
Description
nodeupdown_errnum() returns the error code stored in handle.
nodeupdown_strerror() returns a pointer to a string describing the error code errnum.
Generally, an error code is retrieved by nodeupdown_errnum() and then passed to nodeupdown_strerror().
nodeupdown_errormsg() returns a pointer to a string describing the error stored in handle. It is logically equivalent to:
char *nodeupdown_strerror(nodeupdown_errnum(nodeupdown_t handle));
nodeupdown_perror() is similar to perror(3). It produces a message on standard error output, describing the error stored in handle. If msg is not NULL, the string pointed to by msg, a colon, and a blank are printed before the error message.
Files
/usr/include/nodeupdown.h