getCmdLineArgCount

系统函数 getCmdLineArgCount 返回用于启动 EGL 主程序的自变量或参数的数目。


getCmdLineArgCount 语法图
count
count 可能是任何整数。
以下代码示例循环使用自变量列表:
count int;
argument char(20);

count = 0;
argumentCount = getCmdLineArgCount();

while (count < argumentCount)
   argument = getCmdLineArg(count)
   count = count + 1;
end
    

getCmdLineArgCount 函数仅在 Java™ 环境中受支持。

使用 getCmdLineArg 函数从用于调用 EGL 程序的自变量列表中获取指定自变量。

相关参考
EGL 库 SysLib
getCmdLineArg

使用条款 | 反馈
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.