Re: What is the best way to define the Imported C function
- From: Martin Krischik <krischik@xxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 26 Jan 2008 11:15:36 +0100
qunying wrote:
Hi,
I am learning Ada and try to test the interface with C.
for this function, what is the best way to define the function in Ada?
int xcb_parse_display(const char *name, char **host, int *display, int
*screen);
function parse_display (
Name : in Interfaces.C.Strings.char_array_access;
Host : access Interfaces.C.Strings.char_array_access;
Display : access Interfaces.C.int;
Screen : access Interfaces.C.int)
return Interfaces.C.int;
See:
http://www.adaic.com/standards/05rm/html/RM-B-3.html
Martin
--
mailto://krischik@xxxxxxxxxxxxxxxxxxxxx
Ada programming at: http://ada.krischik.com
.
- Follow-Ups:
- Re: What is the best way to define the Imported C function
- From: qunying
- Re: What is the best way to define the Imported C function
- From: qunying
- Re: What is the best way to define the Imported C function
- References:
- What is the best way to define the Imported C function
- From: qunying
- What is the best way to define the Imported C function
- Prev by Date: Re: Why I hate Gtk+/GNOME (from the perspective of an Ada supporter)
- Next by Date: Re: What is the best way to define the Imported C function
- Previous by thread: What is the best way to define the Imported C function
- Next by thread: Re: What is the best way to define the Imported C function
- Index(es):
Relevant Pages
|