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

📄 docpkge.par.lib

📁 su 的源代码库
💻 LIB
字号:
DOCPKGE - Function to implement the CWP self-documentation facilityrequestdoc	give selfdoc on user request (i.e. when name of main is typed)pagedoc		print self documentation stringFunction Prototypes:void requestdoc(flag);void pagedoc();requestoc:Input:flag		integer specifying i.o. casespagedoc():Returns:	the self-documentation, an array of stringsNotes:requestdoc:In the usual case, stdin is used to pass in data.  However,some programs (eg. synthetic data generators) don't use stdinto pass in data and some programs require two or more argumentsbesides the command itself (eg. sudiff) and don't use stdin.In this last case, we give selfdoc whenever too few argumentsare given, since these usages violate the usual SU syntax.In all cases, selfdoc can be requested by giving only theprogram 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 requiredpagedoc:Intended to be called by requesdoc(), but conceivably could beused directly as in:      if (xargc != 3) selfdoc();Based on earlier versions by:SEP: Einar Kjartansson, Stew Levin CWP: Jack Cohen, Shuki RonenHRC: LyleAuthor: Jack K. Cohen, Center for Wave Phenomena

⌨️ 快捷键说明

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