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,a7d2d00671375b58 X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: GNAT Strings Date: 1996/04/16 Message-ID: #1/1 X-Deja-AN: 147910899 references: <4l0oiq$4e8@arl-news-svc-2.compuserve.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-04-16T00:00:00+00:00 List-Id: Rob said "Does anyone know how strings are stored in GNAT, and thus how they can be sent from C. I think a pointer is first sent to the string and then a pointer to a structure containing first and last pointers but I am not absolutely sure this is correct. Any help would be much appreciated," You should not write C at this level. Instead to pass strings across the Ada-C interface, use the protable routines defined in and under Interfaces.C.