FrontISTR  5.7.0
Large-scale structural analysis program with finit element method
hecmw_malloc.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include "hecmw_config.h"
#include "hecmw_util.h"
#include "hecmw_malloc.h"
Include dependency graph for hecmw_malloc.c:

Go to the source code of this file.

Data Structures

struct  malloc_info
 

Functions

int HECMW_list_meminfo (FILE *fp)
 
void HECMW_set_autocheck_memleak (int flag)
 
int HECMW_check_memleak (void)
 
long HECMW_get_memsize (void)
 
void HECMW_free_ (void *ptr, char *file, int line)
 
void * HECMW_malloc_ (size_t size, char *file, int line)
 
void * HECMW_calloc_ (size_t nmemb, size_t size, char *file, int line)
 
void * HECMW_realloc_ (void *ptr, size_t size, char *file, int line)
 
char * HECMW_strdup_ (const char *s, char *file, int line)
 

Function Documentation

◆ HECMW_calloc_()

void* HECMW_calloc_ ( size_t  nmemb,
size_t  size,
char *  file,
int  line 
)

Definition at line 194 of file hecmw_malloc.c.

◆ HECMW_check_memleak()

int HECMW_check_memleak ( void  )

Definition at line 138 of file hecmw_malloc.c.

◆ HECMW_free_()

void HECMW_free_ ( void *  ptr,
char *  file,
int  line 
)

Definition at line 170 of file hecmw_malloc.c.

◆ HECMW_get_memsize()

long HECMW_get_memsize ( void  )

Definition at line 168 of file hecmw_malloc.c.

◆ HECMW_list_meminfo()

int HECMW_list_meminfo ( FILE *  fp)

Definition at line 121 of file hecmw_malloc.c.

◆ HECMW_malloc_()

void* HECMW_malloc_ ( size_t  size,
char *  file,
int  line 
)

Definition at line 179 of file hecmw_malloc.c.

◆ HECMW_realloc_()

void* HECMW_realloc_ ( void *  ptr,
size_t  size,
char *  file,
int  line 
)

Definition at line 209 of file hecmw_malloc.c.

◆ HECMW_set_autocheck_memleak()

void HECMW_set_autocheck_memleak ( int  flag)

Definition at line 136 of file hecmw_malloc.c.

◆ HECMW_strdup_()

char* HECMW_strdup_ ( const char *  s,
char *  file,
int  line 
)

Definition at line 249 of file hecmw_malloc.c.