#include <stdio.h>
#include "CUDD/util.h"
Go to the source code of this file.
◆ MMalloc()
char* MMalloc |
( |
long |
size | ) |
|
Definition at line 51 of file safe_mem.c.
57 if (
MMoutOfMemory != (
void (*)(
long)) 0 ) (*MMoutOfMemory)(size);
61 if (size == 0) size =
sizeof(long);
62 if ((p = (
char *)
malloc((
unsigned long) size)) ==
NIL(
char)) {
void(* MMoutOfMemory)(long)
◆ MMfree()
void MMfree |
( |
char * |
obj | ) |
|
◆ MMout_of_memory()
void MMout_of_memory |
( |
long |
size | ) |
|
Definition at line 41 of file safe_mem.c.
43 (void) fflush(stdout);
44 (void) fprintf(stderr,
"\nout of memory allocating %lu bytes\n",
45 (
unsigned long) size);
◆ MMrealloc()
char* MMrealloc |
( |
char * |
obj, |
|
|
long |
size |
|
) |
| |
Definition at line 71 of file safe_mem.c.
82 if (size <= 0) size =
sizeof(long);
83 if ((p = (
char *)
realloc(obj, (
unsigned long) size)) ==
NIL(
char)) {
void(* MMoutOfMemory)(long)
◆ MMoutOfMemory