English
Language : 

CC78K0S Datasheet, PDF (217/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 10 LIBRARY FUNCTIONS
5-4 free
Utility Functions
FUNCTION
The memory function free releases the allocated block of memory.
HEADER
stdlib.h
FUNCTION PROTOTYPE
void free(void *ptr);
Function
free
Arguments
Return Value
ptr ... Pointer to the beginning None
of block to be released
EXPLANATION
• The free function releases the allocated space (before a break value) pointed to by ptr. (malloc, calloc, or
realloc called after free will allocate space from ptr.)
• If ptr does not point to the allocated space, the free will take no action. (Freeing the allocated space is
performed by setting ptr as a new break value.)
User’s Manual U14872EJ1V0UM
217