Function

GLib-2.0GLibmem_is_system_mallocDeprecated 2.46

  • Checks whether the allocator used by g_malloc() is the system's malloc implementation. If it returns true memory allocated with malloc() can be used interchangeably with memory allocated using g_malloc(). This function is useful for avoiding an extra copy of allocated memory returned by a non-GLib-based API.

    Returns boolean

    if true, malloc() and g_malloc() can be mixed.

    since 2.46: GLib always uses the system malloc, so this function always returns true.