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

📄 allocation_error.c

📁 解吸SEED格式的源代码
💻 C
字号:
/*===========================================================================*//* SEED reader     |           allocation_error            |         utility *//*===========================================================================*//*	Name:		allocation_error	Purpose:	print an error message after a memory allocation failure, quit	Usage:		void allocation_error ();				char *message_string;				allocation_error (message_string);	Input:		message_string = a message to be printed; this will usually be 				the name of the calling procedure (where memory allocation 				failed.	Output:		none	Externals:	none	Warnings:	none	Errors:		none	Called by:	anything	Calls to:	none	Algorithm:	print a message, terminate execution	Notes:		none	Problems:	none known	References:	Halbert et al, 1988; see main routine	Language:	C, hopefully ANSI standard	Author:		Dennis O'Neill	Revisions:	07/15/88  Dennis O'Neill  Initial preliminary release 0.9				11/21/88  Dennis O'Neill  Production release 1.0*/#include <stdio.h>void allocation_error (string)char *string;{	fprintf (stderr,"ERROR (%s):  ", string);	fprintf (stderr, "unable to allocate sufficient memory.\n");	fprintf (stderr, "\tExecution terminating.\n");	exit (-1);}

⌨️ 快捷键说明

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