comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Obry <pascal@obry.org>
Subject: Re: Passing float values to C
Date: 12 Feb 2005 19:08:28 +0100
Date: 2005-02-12T19:08:28+01:00	[thread overview]
Message-ID: <u7jldodlv.fsf@obry.org> (raw)
In-Reply-To: 676dnaxFQuzk2JPfRVn-1Q@comcast.com


tmoran@acm.org writes:

> >       procedure cprintfs(Variable : Interfaces.C.Strings.chars_ptr; val
> > : Interfaces.C.short );
> >       pragma Import(C, cprintfs, "cprintfs");
>   That says you are passing a short float, val.

No, Interfaces.C.short is a short *int*.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595



  reply	other threads:[~2005-02-12 18:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-12 16:58 Passing float values to C Garry
2005-02-12 18:05 ` tmoran
2005-02-12 18:08   ` Pascal Obry [this message]
2005-02-12 19:59     ` Martin Krischik
2005-02-12 21:36       ` tmoran
2005-02-13  0:38 ` Jeffrey Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox