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

📄 askdoc.c

📁 seismic software,very useful
💻 C
字号:
/* Copyright (c) Colorado School of Mines, 1990./* All rights reserved.                       *//*---------------------------------------------------------------------- * Copyright (c) Colorado School of Mines, 1989. * All rights reserved. * * This code is part of SU.  SU stands for Seismic Unix, a processing line * developed at the Colorado School of Mines, partially based on Stanford * Exploration Project (SEP) software.  Inquiries should be addressed to: * *  Jack K. Cohen, Center for Wave Phenomena, Colorado School of Mines, *  Golden, CO 80401  (jkc@dix.mines.colorado.edu) *---------------------------------------------------------------------- */#include "par.h"/* askdoc - give selfdoc on user request * * Synopsis: *	void askdoc(flag); *	int flag; * * Credit: *	CWP: Shuki, Jack *	HRC: Lyle * * Note: *	In the usual case, stdin is used to pass in data.  However, *	some programs (eg. synthetic data generators) don't use stdin *	to pass in data and some programs require two or more arguments *	besides the command itself (eg. sudiff) and don't use stdin. *	In this last case, we give selfdoc whenever too few arguments *	are given, since these usages violate the usual SU syntax. *	In all cases, selfdoc can be requested by giving only the *	program name. * *	The flag argument distinguishes these cases: *		flag = 0; fully defaulted, no stdin *		flag = 1; usual case *		flag = n > 1; no stdin and n extra args required * * */void askdoc(int flag){	switch(flag) {	case 1:		if (xargc == 1 && isatty(STDIN)) selfdoc();	break;	case 0:		if (xargc == 1 && isatty(STDIN) && isatty(STDOUT)) selfdoc();	break;	default:		if (xargc <= flag) selfdoc();	}	return;}

⌨️ 快捷键说明

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