Go to the first, previous, next, last section, table of contents.


dberror

char *dberror(void)

Return:

(char *)
pointer to error string

This function returns a pointer to a string containing the text of the most recent DB library error message (or to a string containing the DB library version number, if there have been no errors). Function dberror is primarily intended for use in applications for which the standard error output is unavailable or inadequate, such as in X Window System applications. (Note that this function may be unnecessary for MS-Windows applications, since the MS-Windows version of the DB library generates a message box for error messages, unless dbquiet has been used to silence them.) This function was first introduced in DB library version 4.5. Versions earlier than 9.4 return an empty string rather than the library version number if there have been no errors.


Go to the first, previous, next, last section, table of contents.



George B. Moody (george@hstbme.mit.edu)