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.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,96ffd854e360102b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-11 19:20:16 PST Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Robert Dewar Newsgroups: comp.lang.ada Subject: Re: Calling C's fopen from Ada (Aonix compiler) Date: Tue, 12 Dec 2000 03:06:31 GMT Organization: Deja.com - Before you buy. Message-ID: <9144nj$g7a$1@nnrp1.deja.com> References: <3A357C48.D4CAC970@nowhere.com> NNTP-Posting-Host: 205.232.38.240 X-Article-Creation-Date: Tue Dec 12 03:06:31 2000 GMT X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) X-Http-Proxy: 1.0 x64.deja.com:80 (Squid/1.1.22) for client 205.232.38.240 X-MyDeja-Info: XMYDJUIDrobert_dewar Xref: supernews.google.com comp.lang.ada:2971 Date: 2000-12-12T03:06:31+00:00 List-Id: In article <3A357C48.D4CAC970@nowhere.com>, Wayne Magor wrote: > F := my_fopen("my_file.txt" & C.nul, "r" & C.nul); > F := fopen("my_file.txt" & C.nul, "r" & C.nul); This should work with any compiler that follows the implementation advice on how arrays should be passed to C. This is however only IA, so your compiler might ignore it. The best advice with a problem like this is to ask your vendor for help and support, it is exactly the sort of potentially implementation dependent question they should be able to answer for you. Failing that, perhaps someone on the list has used the particular compiler in question and can answer why it does not work. Certainly I see nothing wrong with your code (of course I may be missing something obvious -- it's always possible :-) Sent via Deja.com http://www.deja.com/ Before you buy.