getCmdLineArgCount()

The system function SysLib.getCmdLineArgCount returns the number of arguments that were used to start the main EGL program.

  SysLib.getCmdLineArgCount( )
  returns (result INT)
result
The result is the number of arguments.
The following code example loops through the argument list:
count int;
argument char(20);

count = 0;
argumentCount = SysLib.getCmdLineArgCount();

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

The SysLib.getCmdLineArgCount function is supported only in Java™ environments.

Use the SysLib.getCmdLineArg function to get the specified argument from the list of arguments with which the EGL program was invoked.

Related concepts
Syntax diagram for EGL functions

Related reference
EGL library SysLib
getCmdLineArg()

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.