FREE

Section: C Library Functions (3)
Index Return to Main Contents

BSD mandoc
 

NAME

free - free up memory allocated with malloc, calloc or realloc  

SYNOPSIS

Fd #include <stdlib.h> Ft void Fn free void *ptr  

DESCRIPTION

The Fn free function causes the space pointed to by Fa ptr to be deallocated, that is, made available for further allocation. If Fa ptr is a null pointer, no action occurs. Otherwise, if the argument does not match a pointer earlier returned by the calloc, malloc, or realloc function, or if the space has been deallocated by a call to Fn free or realloc, general havoc may occur.  

RETURN VALUES

The Fn free function returns no value.  

SEE ALSO

calloc(3), malloc(3), realloc(3)  

STANDARDS

The Fn free function conforms to St -ansiC .


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
SEE ALSO
STANDARDS

This document was created by man2html, using the manual pages.
Time: 21:44:10 GMT, August 05, 2022