comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: What is a byte?
Date: Tue, 29 Jul 2014 03:53:54 -0700
Date: 2014-07-29T03:53:54-07:00	[thread overview]
Message-ID: <lr7ug2$ncr$1@dont-email.me> (raw)
In-Reply-To: <lr674v$34l$1@speranza.aioe.org>

On 07/28/2014 12:09 PM, Victor Porton wrote:
> When I need to pass a byte to a C function, which Ada type should I use?

"Byte" isn't a C concept. Generally what others call a byte is called "char" in 
C. So you should use whatever type in Interfaces.C(.*) corresponds to the C type 
used by the C function.

-- 
Jeff Carter
"My dear Mrs. Hemoglobin, when I first saw you, I
was so enamored with your beauty I ran to the basket,
jumped in, went down to the city, and bought myself a
wedding outfit."
Never Give a Sucker an Even Break
111


  parent reply	other threads:[~2014-07-29 10:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-28 19:09 What is a byte? Victor Porton
2014-07-28 19:48 ` Dan'l Miller
2014-07-28 20:05   ` Dan'l Miller
2014-07-28 22:38   ` Randy Brukardt
2014-07-28 21:15 ` Simon Wright
2014-07-29 10:53 ` Jeffrey Carter [this message]
2014-07-29 12:26   ` Dan'l Miller
2014-07-29 18:40     ` Simon Wright
2014-07-29 21:15       ` Dan'l Miller
2014-07-29 23:08         ` Simon Clubley
2014-07-30  4:11       ` Dan'l Miller
2014-07-30  7:47       ` Simon Wright
2014-08-02 21:01   ` Keith Thompson
replies disabled

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