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

📄 cerrexit.c

📁 tcp/ip原理的第三卷
💻 C
字号:
/* cerrexit.c - cerrexit */

#include <termios.h>
#include <stdio.h>
#include <varargs.h>

#include "local.h"

/*------------------------------------------------------------------------
 * cerrexit - clean up and exit with an error message
 *------------------------------------------------------------------------
 */
/*VARARGS1*/
int
cerrexit(format, va_alist)
char	*format;
va_dcl
{
	va_list	args;

	va_start(args);
	_doprnt(format, args, stderr);
	(void) tcsetattr(0, TCSADRAIN, &oldtty);
	va_end(args);
	exit(1);
}

⌨️ 快捷键说明

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