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

📄 parameters.def

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 DEF
字号:
(*#@(#)parameters.def	4.1	Ultrix	7/17/90 *)(* $Header: parameters.def,v 1.5 84/05/19 11:40:02 powell Exp $ *)(* This module provides clean access to the command parameters *)DEFINITION MODULE parameters;EXPORT QUALIFIED NumParameters, GetParameter, GetEnvironment;VAR    (* NumParameters = argc = number of parameters counting name of the *)    (*  program (the 0th parameter) *)    NumParameters : cardinal;(* GetParameter copies the num'th parameter (starting at 0, which is the *)(*  program name) into the value array.  It sets length to the number of *)(*  characters stored in the array, < 0 if there aren't that many parameters *)(*  If there is room in value, it adds a 0C at the end *)PROCEDURE GetParameter(num : CARDINAL; VAR value : ARRAY OF CHAR;	VAR length: INTEGER);(* GetEnvironment copies the value of the environment variable with the *)(*  specified name into the value array.  It sets length to the number of *)(*  characters stored in the array, < 0 if that variable doesn't exist. *)(*  The value is the part after the = in the environment string. *)(*  If there is room in value, it adds a 0C at the end *)PROCEDURE GetEnvironment(name : ARRAY OF CHAR; VAR value : ARRAY OF CHAR;	VAR length: INTEGER);END parameters.

⌨️ 快捷键说明

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