CoMD
A Mini-app for Co-Design of Classical Molecular Dynamics.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
memUtils.h File Reference

Wrappers for memory allocation. More...

#include <stdlib.h>
Include dependency graph for memUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define freeMe(s, element)   {if(s->element) comdFree(s->element); s->element = NULL;}
 

Functions

static void * comdMalloc (size_t iSize)
 
static void * comdCalloc (size_t num, size_t iSize)
 
static void * comdRealloc (void *ptr, size_t iSize)
 
static void comdFree (void *ptr)
 

Detailed Description

Wrappers for memory allocation.

Definition in file memUtils.h.

Macro Definition Documentation

#define freeMe (   s,
  element 
)    {if(s->element) comdFree(s->element); s->element = NULL;}

Definition at line 9 of file memUtils.h.

Function Documentation

static void* comdCalloc ( size_t  num,
size_t  iSize 
)
static

Definition at line 16 of file memUtils.h.

Here is the caller graph for this function:

static void comdFree ( void *  ptr)
static

Definition at line 26 of file memUtils.h.

Here is the caller graph for this function:

static void* comdMalloc ( size_t  iSize)
static

Definition at line 11 of file memUtils.h.

Here is the caller graph for this function:

static void* comdRealloc ( void *  ptr,
size_t  iSize 
)
static

Definition at line 21 of file memUtils.h.