comp.lang.ada
 help / color / mirror / Atom feed
From: Al Johnston <sofeise@mindspring.com>
Subject: Re: ada to c interfaces and CHARS_PTR
Date: 2000/03/10
Date: 2000-03-10T16:11:20+00:00	[thread overview]
Message-ID: <38C91E2D.99FC13E1@mindspring.com> (raw)
In-Reply-To: LN%x4.491$34.9257@news.swbell.net

> If it dies when it tries to do a subroutine return, perhaps the
> calling conventions don't match?

I think they did... the problem was I screwing up the
"body" of my c program (c codeing goof)

> Also, what does strdup do?  If
>   *inout_strg_fml = strdup(t_buffer);

strdup(3c) allocates new memory and copies the supplied
string to it.  It doesnt go away until a free(3c) is called. And
yes.. I know the program has 2 leaks in it.

thanks for the assistance... but my real problem was that
I didn't pay enough attention to my c code...

-al





  reply	other threads:[~2000-03-10  0:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-09  0:00 ada to c interfaces and CHARS_PTR Al Johnston
2000-03-09  0:00 ` Gisle S�lensminde
2000-03-09  0:00   ` Al Johnston
2000-03-13  0:00     ` Robert Dewar
2000-03-15  0:00       ` Al Johnston
2000-03-11  0:00   ` Simon Wright
2000-03-14  0:00     ` Al Johnston
2000-03-15  0:00       ` Robert Dewar
2000-03-15  0:00       ` tmoran
2000-03-15  0:00         ` Al Johnston
2000-03-09  0:00 ` Preben Randhol
2000-03-09  0:00   ` Al Johnston
2000-03-10  0:00 ` tmoran
2000-03-10  0:00   ` Al Johnston [this message]
2000-03-10  0:00 ` Al Johnston
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox