Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>returns the number of parameters on the command line</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Returns the number of parameters on the command line
------------------------------------------------------------------------------

 Syntax

        GT_argc() --> nCount

 Arguments:

      None

 Returns:

      nCount  - The number of command line parameters.

 Description:

      Get the number of parameters passed to the Exe
      Reads the C startup variable to find the number of parameters

      Note there is always 1 parameter.  In C argv[0] always equals
      the EXE name in non prehistoric DOSes

 Examples:

      ? "I have been passed " + str(GT_Argc()) + " parameters."

 Source: ARGC.C

 Author:  Andy M Leighton

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson