From: tmoran@acm.org
Subject: Re: Read Windows login username in Ada 95
Date: Thu, 10 Nov 2011 02:09:39 +0000 (UTC)
Date: 2011-11-10T02:09:39+00:00 [thread overview]
Message-ID: <j9fbp2$30l$1@speranza.aioe.org> (raw)
In-Reply-To: 18650574.2609.1320888091484.JavaMail.geo-discussion-forums@yqjc16
> > Who is responsible for freeing Answer_Ptr?
>
> If I included an Free(Answer_Ptr), would it solve this?
I believe the C function getenv returns a pointer to a system area that
has the relevant string, it does not allocate a new buffer and copy the
string to the buffer. The corresponding Windows functions make a copy
in the user-supplied buffer (presumably as an atomic operation).
next prev parent reply other threads:[~2011-11-10 2:10 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-09 1:19 Read Windows login username in Ada 95 Rego, P.
2011-11-09 5:05 ` tmoran
2011-11-10 0:02 ` Adam Beneschan
2011-11-10 1:17 ` Rego, P.
2011-11-09 10:44 ` Pascal Obry
2011-11-09 20:47 ` Rego, P.
2011-11-09 21:06 ` Pascal Obry
2011-11-10 1:16 ` Rego, P.
2011-11-09 21:52 ` Jeffrey Carter
2011-11-10 1:21 ` Rego, P.
2011-11-10 2:09 ` tmoran [this message]
2011-11-10 18:26 ` Jeffrey Carter
2011-11-10 23:13 ` Pascal Obry
2011-11-12 14:21 ` Rego, P.
2011-11-10 23:13 ` Pascal Obry
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox