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

📄 s_paus.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
字号:
/* *	"@(#)s_paus.c	1.1" */#include <stdio.h>#define PAUSESIG 15s_paus(s, n)char *s;long int n;{int i;int waitpause();fprintf(stderr, "PAUSE: ");if(n > 0)	{	for(i = 0; i<n ; ++i)		putc(*s++, stderr);	putc('\n', stderr);	}if( isatty(fileno(stdin)) )	{	fprintf(stderr, "To resume execution, type:   go\nAny other input will terminate the program.\n");	if( getchar()!='g' || getchar()!='o' || getchar()!='\n' )		{		fprintf(stderr, "STOP\n");		f_exit();		_cleanup();		exit(0);		}	}else	{	fprintf(stderr, "To resume execution, type:    kill -%d %d\n",		PAUSESIG, getpid() );	signal(PAUSESIG, waitpause);	pause();	}fprintf(stderr, "Execution resumed after PAUSE.\n");}static waitpause(){return;}

⌨️ 快捷键说明

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