giiExit man page on Cygwin

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

giiInit(3)			      GGI			    giiInit(3)

NAME
       giiInit, giiExit : Initialize and uninitialize LibGII

SYNOPSIS
       #include <ggi/gii.h>

       int giiInit(void);

       int giiExit(void);

DESCRIPTION
       giiInit	initializes  the  library. This function must be called before
       using other LibGII functions; otherwise the results will be undefined.

       giiExit uninitializes the library (after being initialized by  giiInit)
       and automatically cleanup if necessary.	This should be called after an
       application is finished with the library.  If  any  GGI	functions  are
       called  after  the  library has been uninitialized, the results will be
       undefined.

       giiInit allows multiple invocations.  A reference count is  maintained,
       and  to	completely uninitialize the library, giiExit must be called as
       many times as giiInit has been called beforehand.

RETURN VALUE
       giiInit returns 0 for OK, otherwise an gii-error(3) code.

       giiExit returns:

       0      after successfully cleaning up,

       >0     the number of 'open' giiInit calls, if there has been more  than
	      one  call	 to  giiInit.	As giiInit and giiExit must be used in
	      properly nested pairs, e.g. the first giiExit after two  giiInit
	      will return 1.

       <0     gii-error(3),  especially	 if  more giiExit calls have been done
	      than giiInit calls.

EXAMPLES
       Initialize and uninitialize LibGII:

       if (!giiInit()) {
	 exit(EXIT_FAILURE);  /* can't start! */
       }

       /* Do some libgii stuff */

       giiExit();

SEE ALSO
       giiMTInit(3), giiOpen(3)

libgii-1.0.x			  2006-12-30			    giiInit(3)
[top]

List of man pages available for Cygwin

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