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=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: What is a byte? Date: Tue, 29 Jul 2014 03:53:54 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 29 Jul 2014 10:53:54 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="65ab43541eefa8740c29504210e191fb"; logging-data="23963"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18bpES8ZS2H5XlEm3s2J+o7/eyr4iLGM54=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: Cancel-Lock: sha1:ejDc3ymuNa59mXSrA/kftOjTMk0= Xref: number.nntp.dca.giganews.com comp.lang.ada:187985 Date: 2014-07-29T03:53:54-07:00 List-Id: 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