MISR Toolkit  1.5.1
Macros
alloc.h File Reference
#include <stdlib.h>

Go to the source code of this file.

Macros

#define Alloc(theNum, theType)   (theType *)malloc(sizeof(theType) * (theNum))
 
#define Free(ptr)   free(ptr)
 
#define HDfree(ptr)   free(ptr)
 
#define HDcalloc(nelem, elsize)   calloc(nelem,elsize)
 
#define HDmemset(dst, c, n)   memset(dst,c,n)
 
#define HDrealloc(p, s)   realloc(p,s)
 
#define HDmalloc(s)   malloc(s)
 
#define ARRAYLEN(arr)   (sizeof(arr)/sizeof(arr[0]))
 

Macro Definition Documentation

◆ Alloc

#define Alloc (   theNum,
  theType 
)    (theType *)malloc(sizeof(theType) * (theNum))

Definition at line 33 of file alloc.h.

◆ ARRAYLEN

#define ARRAYLEN (   arr)    (sizeof(arr)/sizeof(arr[0]))

Definition at line 64 of file alloc.h.

◆ Free

#define Free (   ptr)    free(ptr)

Definition at line 42 of file alloc.h.

◆ HDcalloc

#define HDcalloc (   nelem,
  elsize 
)    calloc(nelem,elsize)

Definition at line 58 of file alloc.h.

◆ HDfree

#define HDfree (   ptr)    free(ptr)

Definition at line 43 of file alloc.h.

◆ HDmalloc

#define HDmalloc (   s)    malloc(s)

Definition at line 61 of file alloc.h.

◆ HDmemset

#define HDmemset (   dst,
  c,
  n 
)    memset(dst,c,n)

Definition at line 59 of file alloc.h.

◆ HDrealloc

#define HDrealloc (   p,
 
)    realloc(p,s)

Definition at line 60 of file alloc.h.


MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:54