Gtk.test_init
Description: Reference for Gtk.test_init

### Function

# Gtktest_init

since: 4.0

#### Declaration [src]

    void
    gtk_test_init (
      int* argcp,
      char*** argvp,
      ...
    )

#### Description [src]

This function is used to initialize a GTK test program.

It will in turn call `g_test_init()` and `gtk_init()` to properly initialize the testing framework and graphical toolkit. It’ll also set the program’s locale to “C”. This is done to make test program environments as deterministic as possible.

Like `gtk_init()` and g_test_init(), any known arguments will be processed and stripped from `argc` and `argv`.

Available since: 4.0

This function is not directly available to language bindings.

#### Parameters

`argcp`

  Type: `int*`

  Address of the `argc` parameter of the `main()` function. Changed if any arguments were handled.

  The argument will be modified by the function.

`argvp`

  Type: An array of `char**`

  Address of the `argv` parameter of main(). Any parameters understood by `g_test_init()` or `gtk_init()` are stripped before return.

  The argument will be modified by the function.
  The length of the array is specified in the `argcp` argument.
  The caller of the function takes ownership of the data, and is responsible for freeing it.
  Each element is a NUL terminated UTF-8 string.

`...`

  Type: ``

  Currently unused.