DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(gdk.info.gz) Initialization

Info Catalog (gdk.info.gz) Overview (gdk.info.gz) Top (gdk.info.gz) Events
 
 Initialization and exit
 ***********************
 
    Initializing GDK is easy. Simply call `gdk_init' passing in the ARGC
 and ARGV parameters. Exit is similarly easy. Just call `gdk_exit'.
 
  - Function: void gdk_init (int *ARGC, char ***ARGV)
      Initializes the GDK library. The arguments ARGC and ARGV are
      scanned and any arguments that GDK recognizes are handled and
      removed. The ARGC and ARGV parameters are the values passed to
      `main' upon program invocation.
 
  - Function: void gdk_exit (int ERRORCODE)
      Exit GDK and perform any necessary cleanup. `gdk_exit' will call
      the systems `exit' function passing ERRORCODE as the parameter.
 
      int
      main (int argc, char *argv[])
      {
        /* Initialize GDK. */
        gdk_init (&argc, &argv);
      
        /* Exit from GDK...this call will never return. */
        gdk_exit (0);
      
        /* Keep compiler from issuing a warning */
        return 0;
      }
 
Info Catalog (gdk.info.gz) Overview (gdk.info.gz) Top (gdk.info.gz) Events
automatically generated byinfo2html