📄 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 <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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -