debian man page for gd_invalid_dirfile

Query: gd_invalid_dirfile

OS: debian

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

gd_invalid_dirfile(3)						      GETDATA						     gd_invalid_dirfile(3)

NAME
gd_invalid_dirfile -- obtain an pointer to an invalid DIRFILE object
SYNOPSIS
#include <getdata.h> DIRFILE* gd_invalid_dirfile(void);
DESCRIPTION
The gd_invalid_dirfile() returns a pointer to a newly allocated, invalid DIRFILE object. Like any other DIRFILE object, the invalid DIRFILE object should be de-allocated by calling gd_close(3) or gd_discard(3) when it is no longer needed. The DIRFILE object returned may be passed to any other GetData function which requires one, but doing so will inevitably result in that function failing with the GD_BAD_DIRFILE error. A similar effect can be achieved by making an invalid gd_open(3) call, such as: gd_open("", 0); which also returns a pointer to an invalid DIRFILE object. The difference is that an invalid DIRFILE created in this way has a non-zero dirfile error (obtainable with gd_error(3)), while the dirfile error of the invalid DIRFILE returned by gd_invalid_dirfile(3) is zero (in- dicating success).
RETURN VALUE
This function always returns a pointer to a newly allocated, invalid DIRFILE object.
SEE ALSO
gd_close(3), gd_discard(3), gd_error(3), gd_open(3) Version 0.7.0 20 October 2010 gd_invalid_dirfile(3)
Related Man Pages
gd_field_list(3) - debian
gd_mfield_list(3) - debian
gd_nmvectors(3) - debian
gd_nvectors(3) - debian
gd_vector_list(3) - debian
Similar Topics in the Unix Linux Community
awk or sed - Convert 2 lines to 1 line
How can I do this in VI editor?
Is UNIX an open source OS ?
Introduction
Weird 'find' results