gd_invalid_dirfile man page on OpenSuSE

Man page or keyword search:  
man Server   25941 pages
apropos Keyword Search (all sections)
Output format
OpenSuSE logo
[printable version]

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, in‐
       valid DIRFILE object.  Like  any	 other	DIRFILE	 object,  the  invalid
       DIRFILE object should be de-allocated by calling gd_close(3) or gd_dis‐
       card(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 func‐
       tion 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 differ‐
       ence 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 (indicat‐
       ing success).

RETURN VALUE
       This  function  always  returns a pointer to a newly allocated, invalid
       DIRFILE object, except when it is unable to  allocate  memory  for  the
       DIRFILE, in which case it returns NULL.

SEE ALSO
       gd_close(3), gd_discard(3), gd_error(3), gd_open(3)

Version 0.8.0			17 August 2011		 gd_invalid_dirfile(3)
[top]

List of man pages available for OpenSuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net