Function

GLib-2.0GLibset_prgname_once

  • If g_get_prgname() is not set, this is the same as setting the name via g_set_prgname() and true is returned. Otherwise, does nothing and returns false. This is thread-safe.

    Parameters

    • prgname: string

      the name of the program.

    Returns boolean

    whether g_prgname was initialized by the call.