1get_error_string(3)                 GETDATA                get_error_string(3)
2
3
4

NAME

6       get_error_string — report a getdata library error
7

SYNOPSIS

9       #include <getdata.h>
10
11       char *get_error_string(const DIRFILE *dirfile, char *buffer, size_t
12              buflen);
13

DESCRIPTION

15       The get_error_string() function returns a string  describing  the  last
16       dirfile  error  encountered  while operating on dirfile.  The string is
17       written to the user-supplied buffer buffer.  At most buflen  characters
18       will  be written. This always includes a terminating null byte, even if
19       the error string was truncated.  The numeric dirfile error  itself  may
20       be obtained by calling get_error(3).
21
22       The dirfile argument should point to a DIRFILE object previously creat‐
23       ed by a call to dirfile_open(3).
24
25

RETURN VALUE

27       The get_error_string() function returns buffer, or NULL  if  buflen  is
28       less than one.  The error state of dirfile is unchanged.
29

SEE ALSO

31       dirfile_open(3), get_error(3).
32
33
34
35Version 0.6.0                   20 October 2009            get_error_string(3)
Impressum