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 - envsize() return the size of the master environment http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 envsize()           Return the size of the master environment
------------------------------------------------------------------------------
 Declaration
   system.hdr

 Syntax
   func uint envsize extern

 Arguments
   None.

 Return
   The total size of the environment settings.

 Description
   This function returns the size in bytes which has been set aside for the
   DOS master environment.

 Example
   #define EXAMPLE_SYSTEM
   #include example.hdr

   proc Test_envsize
   // Assuming that the config.sys file contains a line like
   //    shell=c:\dos\command.com /e:1024
   // the following instructions will output 1024
   ? "Environment size is", istr( envsize() ), "bytes"
   endproc

   proc main
   Test_envsize()
   endproc

See Also: envcount() getenv() parseenv()

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