mem.h

来自「该程序把数字图像处理与小波变换结合起来」· C头文件 代码 · 共 38 行

H
38
字号
#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 <stdlib.h>
#include <stdio.h>
#include <memory.h>
#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

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?