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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f6e761c7f5b11579 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-03 07:59:55 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: C Interface Date: 3 Apr 2002 07:59:54 -0800 Organization: http://groups.google.com/ Message-ID: <4519e058.0204030759.1cc7f299@posting.google.com> References: NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1017849595 26191 127.0.0.1 (3 Apr 2002 15:59:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 3 Apr 2002 15:59:55 GMT Xref: archiver1.google.com comp.lang.ada:22056 Date: 2002-04-03T15:59:55+00:00 List-Id: "Henrik Quintel" wrote in message news:... > package C renames Interfaces.C; ... > Chars1 : C.char_array(1..20); ... > This example works very fine with my compiler. Now, I have tried to display > the contents > of Chars1 but I don't know how. I have tried several ways but no one worked. Generally, I would convert such a string into an Ada string (using Interfaces.C.To_Ada) to deal with it inside of Ada, rather than trying to deal directly with the C string. If you let C use C strings, and Ada use Ada strings, the world is a happier place. :-) -- T.E.D. Home - mailto:dennison@telepath.com (Yahoo: Ted_Dennison) Homepage - http://www.telepath.com/dennison/Ted/TED.html