www.pudn.com > EZW_.rar > MEM.H
#ifndef __MEM_H_ #define __MEM_H_ /*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/ /* * Mow-Song, Ng 2/9/2002 * msng@mmu.edu.my * http://www.pesona.mmu.edu.my/~msng * * I do not claim copyright to the code, but if you use them or modify them, * please drop me a mail. * */ /*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/ #include#include #include #include "memchk.h" #ifndef BYTE #define BYTE unsigned char #endif unsigned char **Byte_Alloc(int rows, int cols); double **Double_Alloc(int rows, int cols); int **Int_Alloc(int rows, int cols); void **Mem_Alloc(int rows, int cols, int ElemSize); void Byte_Free(unsigned char **array2); void Int_Free(int **array2); void Double_Free(double **array2); void Mem_Free(void **array2); void *mmalloc(size_t size); #endif