From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b587faeee5fad895 X-Google-Attributes: gid103376,public From: Al Johnston Subject: Re: ada/c if - putenv? Date: 2000/03/07 Message-ID: <38C5ADEE.59873DC9@mindspring.com>#1/1 X-Deja-AN: 594513349 Content-Transfer-Encoding: 7bit References: <38C53194.EE4BAC3E@mindspring.com> <38C58905.8E89F18E@acm.org> <38C5A116.4AC1132D@research.canon.com.au> X-Accept-Language: en X-Server-Date: 8 Mar 2000 01:35:34 GMT Content-Type: text/plain; charset=us-ascii Organization: MindSpring Enterprises Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-03-08T01:35:34+00:00 List-Id: > Yes that's it. > man putenv gives this information: > > the string pointed to by string > becomes part of the environment, so altering the string will yipe! that is strange behavior, but it is documented, very explicitly... sorry I didn't RT#M here.... That was the problem... Looks like using putenv() causes a memory leak as well (successive calls for same symbol)... Thank for the help. > I've seen this answered here a few times over the years. sorry....