From: Preben Randhol <randhol+news@pvv.org>
Subject: Re: List of C function usable in Ada
Date: Tue, 15 Oct 2002 13:09:10 +0000 (UTC)
Date: 2002-10-15T13:09:10+00:00 [thread overview]
Message-ID: <slrnaqo4r6.2f3.randhol+news@kiuk0152.chembio.ntnu.no> (raw)
In-Reply-To: f2363bbc0fefabcf601a37e2968c461e.110780@mygate.mailgate.org
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
next prev parent reply other threads:[~2002-10-15 13:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-15 9:47 List of C function usable in Ada Grein, Christoph
2002-10-15 10:29 ` Sim Con
2002-10-15 10:34 ` Preben Randhol
2002-10-15 12:20 ` Sim Con
2002-10-15 13:09 ` Preben Randhol [this message]
2002-10-17 5:45 ` Gisle Sælensminde
-- strict thread matches above, loose matches on Subject: below --
2002-10-15 12:53 Grein, Christoph
2002-10-15 11:03 Grein, Christoph
2002-10-15 9:43 Sim Con
2002-10-15 10:58 ` Dale Stanbrough
2002-10-15 17:20 ` Mark Johnson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox