perror.c

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· C语言 代码 · 共 25 行

C
25
字号
/* Copyright (c) 1979 Regents of the University of California */static char sccsid[] = "@(#)PERROR.c 1.2 1/10/83";#include	<stdio.h>#include	<signal.h>/* * Routine PERROR is called from the runtime library when a runtime * I/O error occurs. Its arguments are a pointer to an error message and  * the name of the offending file. */longPERROR(msg, fname)	char	*msg, *fname;{	PFLUSH();	fputc('\n',stderr);	fputs(msg, stderr);	perror(fname);	kill(getpid(), SIGTRAP);	return 0;}

⌨️ 快捷键说明

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