CalculiX  2.13
A Free Software Three-Dimensional Structural Finite Element Program
u_free.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "CalculiX.h"
Include dependency graph for u_free.c:

Go to the source code of this file.

Functions

void * u_free (void *ptr, const char *file, const int line, const char *ptr_name)
 

Variables

int log_realloc
 

Function Documentation

◆ u_free()

void* u_free ( void *  ptr,
const char *  file,
const int  line,
const char *  ptr_name 
)
28  {
29 
30  /* freeing a field with pointer ptr */
31 
32  char *env;
33 
34  free(ptr);
35 
36  if(log_realloc==-1) {
37  log_realloc=0;
38  env=getenv("CCX_LOG_ALLOC");
39  if(env) {log_realloc=atoi(env);}
40  }
41  if(log_realloc==1) {
42  printf("FREEING of variable %s, file %s, line=%d: oldaddress= %ld\n",ptr_name,file,line,(long int)ptr);
43  }
44  return;
45 }
int log_realloc
Definition: u_calloc.c:23

Variable Documentation

◆ log_realloc

int log_realloc
Hosted by OpenAircraft.com, (Michigan UAV, LLC)