NAME

zkFree - free allocated memory

SYNOPSIS

#include "zkStdlib.h"

void zkFree(void* ptr);

DESCRIPTION

The zkFree() function causes the space pointed to by ptr to be deallocated; that is, made available for further allocation. If ptr is NULL, no action occurs. Otherwise, if the argument does not match a pointer earlier returned by the zkCalloc(), zkMalloc(), or zkRealloc() function, or if the space is deallocated by a call to zkFree() or zkRealloc(), the behaviour is undefined.

Any use of a pointer that refers to freed space causes undefined behaviour.

RETURN VALUE

The zkFree() function returns no value.

ERRORS

No errors are defined.