Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - envcount() return the number of items in master environment http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 envcount()          Return the number of items in master environment
------------------------------------------------------------------------------
 Declaration
   system.hdr

 Syntax
   func uint envcount extern

 Arguments
   None.

 Return
   The number of environment setting strings.

 Description
   This function returns the number of items currently defined in the master
   environment. You will normally call this together with the parseenv()
   function.

 Example
   #define EXAMPLE_SYSTEM
   #include example.hdr

   proc Test_envcount
   vardef
      uint i
   enddef
   for i := 1 to envcount()
      ? parseenv( i )       // get an environment string
   next
   endproc

   proc main
   Test_envcount()
   endproc

See Also: envsize() getenv() parseenv()

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