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,260d6368507c2948 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-15 10:20:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!HSNX.atgi.net!newsfeed.sjc.globix.net!cyclone-sf.pbi.net!151.164.30.35!cyclone.swbell.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3DAC4E5C.84EE0A3A@raytheon.com> From: Mark Johnson X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: List of C function usable in Ada References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 15 Oct 2002 12:20:28 -0500 NNTP-Posting-Host: 192.27.48.39 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1034702449 192.27.48.39 (Tue, 15 Oct 2002 12:20:49 CDT) NNTP-Posting-Date: Tue, 15 Oct 2002 12:20:49 CDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:29807 Date: 2002-10-15T12:20:28-05:00 List-Id: Sim Con wrote: > > Hello! where can i find a list of C functions (with parameters and what > they do)usable in Ada? Thanx in advance ^_^ > Hmm. I don't quite think you received a direct answer to your query. Just about any C function can be called from Ada with a suitable compiler. To get a list of C functions (on Unix or Linux), I suggest running xman, select Manual Page, and then select sections 2 or 3 to get a list of system calls and functions. Depending on your set up, a few other sections may also have callable functions - YMMV. Of course, the next question is "how" to call them and the necessary interfaces that are needed. As commented in other replies, you *could* call strlen to determine the length of a null terminated string. However, a string in Ada may or may not be terminated by nulls. You would have to do the conversion between Ada and C strings before calling strlen. You should use the features documented in Annex B (interface pragmas, the package Interfaces) as well. Having said all that, you might be better off using the capabilities that Ada already provides before calling any C functions. Good luck. --Mark