pureFree

Pure variants of C's memory allocation functions malloc, calloc, and realloc and deallocation function free.

Purity is achieved by saving and restoring the value of errno, thus having as if it were never changed.

@system pure @nogc nothrow
void
pureFree
(
void* ptr
)

See Also

D's rules for purity, which allow for memory allocation under specific circumstances.

Meta