Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

memfree - free memory area (BS2000)

&pagelevel(4)&pagelevel

Syntax

#include <stdlib.h>

void memfree(const void *ptr, size_t num);

Description

memfree() releases num bytes of the memory area to which ptr points.
memfree() passes on the release request directly to the appropriate operating system call.
memfree() can only be used in conjunction with memalloc(). Both functions are mainly
suitable for memory areas with a size of more than 2 KB.

ptr is a pointer to the memory area to be freed.
ptr must be the result of a preceding memalloc() call.

num is an integer value that specifies the size of the memory area in bytes.

Notes

memfree() can only be used to free a memory area requested by memalloc().

The values passed to memfree() must match those of the corresponding memalloc() call.
Random values will lead to critical errors in the working memory!

See also

memalloc().