⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newmat.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
字号:
/*	newmat.c	4.1	83/03/09	*//* * newmat: return a brand new bitmat with the proper size. * To get rid of it just call free. */#include "bit.h"bitmatnewmat(rows, cols)int rows, cols;{	int size = ((cols + 7) >> 3) * rows;	char *m;#ifdef TRACE	if (size <= 0 && trace) {		fprintf(trace, "newmat: rows=%d, cols=%d\n", rows, cols);		abort();	}	if (trace)		fprintf(trace, "newmat: malloc(%d) =", size);#endif	m = (char *) malloc(size);#ifdef TRACE	if (trace)		fprintf(trace, "%x\n", m);#endif	zermat(m, rows, cols);	return (m);}

⌨️ 快捷键说明

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