Function

GLib-2.0GLibintern_stringSince 2.10

  • Returns a canonical representation for string. Interned strings can be compared for equality by comparing the pointers, instead of using strcmp().

    This function must not be used before library constructors have finished running. In particular, this means it cannot be used to initialize global variables in C++.

    Parameters

    • Optionalstring: string

      a string

    Returns string

    a canonical representation for the string

    2.10