Copyright (C) 2000-2012 |
GNU Info (gdk.info)InitializationInitialization 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; } automatically generated by info2www version 1.2.2.9 |