From: Waldemar Schultz Newsgroups: comp.os.msdos.djgpp Subject: Re: getenv() question Date: Mon, 14 May 2001 12:33:34 +0200 Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany) Lines: 19 Message-ID: <3AFFB47E.C82A6B3D@ma.tum.de> References: NNTP-Posting-Host: pcritter14.mathematik.tu-muenchen.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: wsc10.lrz-muenchen.de 989836339 5871 131.159.68.151 (14 May 2001 10:32:19 GMT) X-Complaints-To: news AT lrz-muenchen DOT de NNTP-Posting-Date: 14 May 2001 10:32:19 GMT X-Mailer: Mozilla 4.75 [de] (Win98; U) X-Accept-Language: de,en-US To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii schrieb: > > On Mon, 14 May 2001, Waldemar Schultz wrote: > > > Thanks, and is there also a possibility of obtaining the > > available free space in environ (allocated size of environ)? > > I'm not sure what are you asking, exactly. There's space that is > allocate for `environ', which is an array of pointers, and there's > additional space allocated for each "VAR=VALUE" string. Which one of > these are you interested in? In simple words: can I write a (DOS) C-program that tells me how much environment space is free/occupied ? -- Gruss Waldemar Schultz. schultz AT ma DOT tum DOT de Technische Universität München, Zentrum Mathematik M1, D 80290 München Tel: +49 (0)89 2892 8226 FAX: +49 (0)89 2892 8228