table of contents
other versions
- wheezy 0.7.3-6
- jessie 0.7.3-6+b2
- testing 0.9.4-1
- unstable 0.9.4-1
- experimental 0.10.0-1
gd_fragmentname(3) | GETDATA | gd_fragmentname(3) |
NAME¶
gd_fragmentname — retrieve a dirfile format specification fragment nameSYNOPSIS¶
#include <getdata.h>const
char* gd_fragmentname(const DIRFILE *dirfile, int
index);
DESCRIPTION¶
The gd_fragmentname() function queries a dirfile(5) database specified by dirfile and returns the filename of the format specification fragment indexed by the non-negative index.RETURN VALUE¶
Upon successful completion, gd_fragmentname() returns a pointer to a read-only character string containing the file name of the specified fragment. On error, gd_fragmentname() returns NULL and sets the dirfile error a non-zero error value. Possible error values are:- GD_E_BAD_DIRFILE
- The supplied dirfile was invalid.
- GD_E_BAD_INDEX
- The supplied index was out of range.
SEE ALSO¶
dirfile(5), gd_error(3), gd_error_string(3), gd_include(3), gd_nfragments(3), gd_open(3), gd_parent_fragment(3)21 July 2010 | Version 0.7.0 |