[ Version ( deprecated_since = "2.46" ) ]
public bool mem_is_system_malloc ()

Warning: mem_is_system_malloc is deprecated since 2.46.

Checks whether the allocator used by malloc is the system's malloc implementation.


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

If it returns true memory allocated with malloc can be used interchangeably with memory allocated using malloc. This function is useful for avoiding an extra copy of allocated memory returned by a non-GLib-based API.


if true, malloc and malloc can be mixed.

Namespace: GLib
Package: glib-2.0