malloc_get_state(3) Library Functions Manual malloc_get_state(3) malloc_get_state, malloc_set_state - malloc (libc -lc) #include void *malloc_get_state(void); int malloc_set_state(void *state); : glibc 2.25. malloc_get_state() malloc(3) ( malloc_hook(3)). malloc(3) . ( free(3) .) malloc_set_state() malloc(3) state. malloc_get_state() . ( ) malloc_get_state() NULL. malloc_set_state() 0. state malloc_set_state() -1. state malloc_set_state() -2. attributes(7). +------------+------------------------------------+--------------------+ || | | +------------+------------------------------------+--------------------+ |malloc_get_state(),| | MT-Safe | |malloc_set_state()| | | +------------+------------------------------------+--------------------+ GNU. malloc(3) / . GNU Emacs "" . : malloc ( mallopt(3)) malloc_get_state() malloc_set_state() malloc malloc malloc 0. malloc(3), mallopt(3) 3 . . : . 6.18 8 2026 malloc_get_state(3)