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,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no 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 05:41:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!deine.net!freenix!enst!enst.fr!not-for-mail From: =?iso-8859-1?Q?M=E1rio_Amado_Alves?= Newsgroups: comp.lang.ada Subject: RE: C Interface Date: Wed, 3 Apr 2002 14:40:07 +0100 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1017841262 16159 137.194.161.2 (3 Apr 2002 13:41:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 3 Apr 2002 13:41:02 +0000 (UTC) Return-Path: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:22047 Date: 2002-04-03T14:40:07+01:00 "... 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." Convert to String and print with Ada.Text_IO.Put_Line. (There should be a To_Ada function or similar in Interfaces.C (or its child Strings) to convert a chars_array to String.) "... Does someone knows if there are examples which explain the access to the C interface functions. It would be very nice if someone can give me references or examples." For examples look at _bindings_ to C libraries e.g. database systems (Postgres, MySQL), graphics (X), Windows libraires, etc. There is a lot online. Start in AdaPower.Com as usual. I don't know of any 'tutorial' online, but I'm sure Cohen's book explains the issue.