get_error

Langue: en

Version: 8 December 2008 (fedora - 05/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

get_error --- report a getdata library error

SYNOPSIS

#include <getdata.h>
int get_error(const DIRFILE *dirfile);

DESCRIPTION

The get_error() function returns the numeric dirfile error associated with the dirfile dirfile which is set by many GetData library functions.

The dirfile argument should point to a DIRFILE object previously created by a call to dirfile_open(3).

A textual description of the error may be obtained by calling get_error_string(3).

RETURN VALUE

The get_error() function always returns the dirfile error corresponding to the error state of the last library call on the supplied DIRFILE object.

SEE ALSO

dirfile_open(3), get_error_string(3)