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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f58edf3a3fc00db X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-22 18:45:44 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out.usenetserver.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.sttls1.wa.home.com.POSTED!not-for-mail Reply-To: "DuckE" From: "DuckE" Newsgroups: comp.lang.ada References: <91ondg$lpu$1@nnrp1.deja.com> <91sq4j$tpr$1@nnrp1.deja.com> Subject: Re: Interface to C; Storage_Error X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Sat, 23 Dec 2000 02:45:43 GMT NNTP-Posting-Host: 24.6.221.63 X-Complaints-To: abuse@home.net X-Trace: news1.sttls1.wa.home.com 977539543 24.6.221.63 (Fri, 22 Dec 2000 18:45:43 PST) NNTP-Posting-Date: Fri, 22 Dec 2000 18:45:43 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: supernews.google.com comp.lang.ada:3377 Date: 2000-12-23T02:45:43+00:00 List-Id: > > > Since the "C" prototype is using "char *" I suspect you need > > to allocate the data to send to the function. > > I see no reason for this suspicion, either on the basis of how > any compiler I know about works, or from the RM, please tell us > where you got this idea from :-) > In the original post the "C" prototype for the function GetNextVal is: int GetNextVal(SRV_HANDLE srv, RSLT_HANDLE rslt, CTX_HANDLE *ctx, char* name, double* dbl, FLT_HANDLE flt); If I were calling this function inside a C program it would look something like: char name[255]; dummy = GetNextVal( ..., name , ... ); In this example "name" is allocated by the caller, and the address of that memory is passed to the function. I would not expect the called function to allocate space for "name". Perhaps you didn't understand what I was attempting to say the first time? SteveD