blob: e0a1270a755cfff59949f89ca748b18872a230df (
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
|
#include <stdlib.h>
#include "_stdlib.h"
/** deallocate memory **/
void free(void * ptr)
{
SIGNAL_SAFE(0);
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)
*/
|