Re: getenv
- Posted by Jason Gade <jaygade at ?ahoo.co?> May 30, 2008
- 676 views
Jeremy Cowgar wrote: > > Bernie Ryan wrote: > > > > > DWORD GetEnvironmentVariable( > > LPCTSTR lpName, // address of environment variable name > > LPTSTR lpBuffer, // address of buffer for variable value > > DWORD nSize // size of buffer, in characters > > ); > > > > Thank you, however, we still have a problem with DOS. Now, how to solve that > one... otherwise, we will have Win32 and Linux that work alike, but now your > app will have problems in DOS > > -- > Jeremy Cowgar > <a href="http://jeremy.cowgar.com">http://jeremy.cowgar.com</a> I don't think that differences in the operating system internals is the responsibility of the interpreter. If the two OSes operate differently for this edge case, so be it, document it and move on. I mean, after a point, being cross-platform is a best-effort proposition. -- A complex system that works is invariably found to have evolved from a simple system that works. --John Gall's 15th law of Systemantics. "Premature optimization is the root of all evil in programming." --C.A.R. Hoare j.