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 06:09:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!129.240.148.23!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: List of C function usable in Ada Date: Tue, 15 Oct 2002 13:09:10 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1034687350 23366 129.241.83.78 (15 Oct 2002 13:09:10 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Tue, 15 Oct 2002 13:09:10 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:29796 Date: 2002-10-15T13:09:10+00:00 List-Id: Sim Con wrote: >> what is strlen and rename? I mean what do they do? > > strlen returns the lenght of a string and rename rename a file , 2 > useful c functions (especially the rename one, since it isn't built in > ada) ;) And strlen is useful how in Ada? Why don't you use Ada to find the length of a string ? As for rename if you use GNAT you find it in GNAT.OS_Lib (filename : g-os_lib.ads and g-os_lib.adb) procedure Rename_File (Old_Name : String; New_Name : String; Success : out Boolean); -- Rename a file. Successis set True or False indicating if the -- rename is successful. If you want to learn how to import "C" you can look at the implementation of Rename_File. -- Ada95 is good for you. http://libre.act-europe.fr/Software_Matters/02-C_pitfalls.pdf