Hi Andreas,

> Are there any documented limits for environment variables in DOS?
> 
> My implementation uses a static buffer. So the content changes with
> every call to getenv. This is explicitly allowed by the standard.
> 
> I don't want to make the buffer too large though, since space
> is so limited in small mode. Currently either the name or the content
> may not be larger than 126 characters. If the name is longer, it is
> not found. If the content is longer, it is truncated.

Additionally to Ralf's answer this book might be handy for the future:
http://www.borncity.de/Library/DOSProgHB.PDF (in German only)
It's not "the best", but fairly okay.

Robert Riebisch
-- 
              +++ BTTR Software +++
     Home page:  http://www.bttr-software.de/
DOS ain't dead:  http://www.bttr-software.de/forum/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to