an_geterror(3) - Linux man page

Name

an_geterror - return Antinat's error code in string form

Synopsis

#include <antinat.h>

char * an_geterror(int error);

Description

The an_geterror(3) function is used to retrieve a human readable explanation of the error. The exact strings contained here are liable to change and could be potentially lengthy.

error is an error code returned by a call to another Antinat function.

Return Value

This call returns a pointer to a read-only string containing the error message, or NULL if the error code is invalid.

Errors

The return value will be NULL if an error occurs.

Author

Malcolm Smith <malxau@users.sourceforge.net>