#include <stdio.h>
#include <stdlib.h>
#include "CalculiX.h"
Go to the source code of this file.
|
void * | u_realloc (void *ptr, size_t size, const char *file, const int line, const char *ptr_name) |
|
◆ u_realloc()
void* u_realloc |
( |
void * |
ptr, |
|
|
size_t |
size, |
|
|
const char * |
file, |
|
|
const int |
line, |
|
|
const char * |
ptr_name |
|
) |
| |
37 if(a==NULL && ptr!=NULL && size!=0){
38 printf(
"*ERROR in u_realloc: error allocating memory\n");
39 printf(
"variable=%s, file=%s, line=%d, size(bytes)=%ld, oldaddress=%ld\n",ptr_name,file,line,size,(
long int)ptr);
45 env=getenv(
"CCX_LOG_ALLOC");
49 printf(
"REALLOCATION of variable %s, file %s, line=%d: size(bytes)=%ld, oldaddress= %ld,address= %ld\n",ptr_name,file,line,size,(
long int)ptr,(
long int)a);
int log_realloc
Definition: u_calloc.c:23
◆ log_realloc