summaryrefslogtreecommitdiff
path: root/src/stdlib/free.c
blob: 350c70ccf4a525510eeecf725a6f5471021edccf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#if 0

#include <stdlib.h>

/** deallocate memory **/

void free(void * ptr)
{
	if (ptr == NULL) {
		return;
	}

	realloc(ptr, 0);
}

/***
deallocates the memory at ARGUMENT(ptr). Specifying CONSTANT(NULL)
causes nothing to happen.
***/

/*
UNDEFINED(ARGUMENT(ptr) was not returned by a previous call to FUNCTION(calloc), FUNCTION(malloc), or FUNCTION(realloc))
STDC(1)
*/


#endif