INtime SDK Help
heap_set_config
INtime SDK v6 > About INtime > Other system libraries > Heaps and memory pools > C/C++ Runtime heap > heap_set_config

Sets the specified heap's configuration.

int heap_set_config(
    MPOOL_CONFIG * config
);

Parameters

config
Pointer to an MPOOL configuration descriptor (MPOOL_CONFIG).

Remarks

To modify a configuration with heap_set_config, you must retrieve a configuration by calling heap_get_config.

Return Values

0 (zero)
Success.
Less than 0 (zero)
Failure. The function sets errno to one of these values:
EEXIST The heap is deleted.
EINVAL The heap is not a valid MPOOL or the value of config is NULL.

Requirements

Versions Defined in Include Link to
INtime 4.0 intime/rt/include/heap.h heap.h clib.lib
   
See Also