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

📄 menu_alloc.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef lintstatic	char	sccsid[] = "@(#)menu_alloc.c 1.1 92/07/30";#endif/* *	Name:		menu_alloc.c * *	Description:	Allocate memory for the menu system. * *	Call syntax:	int_p = menu_alloc(n_bytes); * *	Parameters:	unsigned int	n_bytes; * *	Return value:	int *		char_p; */#include "menu.h"/* *	External functions: */extern	char *		calloc();int *menu_alloc(n_bytes)	unsigned int	n_bytes;{	int *		int_p;			/* pointer to return */#ifdef lint	int_p = NULL;#else	int_p = (int *) calloc(n_bytes, sizeof(char));#endif lint	if (int_p == NULL) {		menu_log("Cannot allocate memory for menu system.");		menu_abort(1);	}	return(int_p);} /* end menu_alloc() */

⌨️ 快捷键说明

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