ドキュメント ホーム サイトマップ マニュアルページ GNU 情報 検索 印刷形式
 

(gdk.info) Initialization

情報カタログ (gdk.info) Overview (gdk.info) Top (gdk.info) 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;
      }
 
情報カタログ (gdk.info) Overview (gdk.info) Top (gdk.info) Events
より自動的に生成されましたinfo2html