CalculiX  2.8
A Free Software Three-Dimensional Structural Finite Element Program
 All Classes Files Functions Variables Macros
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

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

Definition at line 28 of file u_free.c.

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

int log_realloc

Definition at line 23 of file u_calloc.c.

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