delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/14/05:02:18

From: Waldemar Schultz <schultz AT ma DOT tum DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: getenv() question
Date: Mon, 14 May 2001 10:47:51 +0200
Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany)
Lines: 21
Message-ID: <3AFF9BB7.55A60FDF@ma.tum.de>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010514095853 DOT 24166I AT is>
NNTP-Posting-Host: pcritter14.mathematik.tu-muenchen.de
Mime-Version: 1.0
X-Trace: wsc10.lrz-muenchen.de 989829999 1053 131.159.68.151 (14 May 2001 08:46:39 GMT)
X-Complaints-To: news AT lrz-muenchen DOT de
NNTP-Posting-Date: 14 May 2001 08:46:39 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, Rafal Maj wrote:
> 
> > how to check ammount of variables in environment, and get all of them ? Like
> > getenv() but when I don't now environment variable name.
> 
> Use the `environ' array.  It's NULL-terminated, like `argv', so you
> can walk it with a simple loop.
> 
> As an example, here's the source of DJGPP's implementation of
> `getenv':
<code snipped>

Thanks, and is there also a possibility of obtaining the 
available free space in environ (allocated size of environ)?

-- 
 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019