.\" gd_error.3. The gd_error man page. .\" .\" Copyright (C) 2008, 2010, 2011 D. V. Wiebe .\" .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" .\" .\" This file is part of the GetData project. .\" .\" Permission is granted to copy, distribute and/or modify this document .\" under the terms of the GNU Free Documentation License, Version 1.2 or .\" any later version published by the Free Software Foundation; with no .\" Invariant Sections, with no Front-Cover Texts, and with no Back-Cover .\" Texts. A copy of the license is included in the `COPYING.DOC' file .\" as part of this distribution. .\" .TH gd_error 3 "20 April 2011" "Version 0.8.0" "GETDATA" .SH NAME gd_error \(em report a GetData library error .SH SYNOPSIS .B #include .HP .nh .ad l .BI "int gd_error(const DIRFILE *" dirfile ); .hy .ad n .SH DESCRIPTION The .BR gd_error () function returns the numeric dirfile error associated with the dirfile .I dirfile which is set by many GetData library functions. A textual description of the error may be obtained by calling .BR gd_error_string (3). .SH RETURN VALUE The .BR gd_error () function always returns the dirfile error corresponding to the error state of the last library call on the supplied DIRFILE object. .SH SEE ALSO .BR gd_error_count (3), .BR gd_error_string (3)