POV-Ray : Newsgroups : povray.off-topic : For Warp : Re: For Warp Server Time
5 Sep 2024 23:17:12 EDT (-0400)
  Re: For Warp  
From: Nicolas Alvarez
Date: 26 Jun 2009 16:00:01
Message: <4a4528c1@news.povray.org>
clipka wrote:
> Happens to hardcore software developers, too. I once had some problems
> figuring out why some intended-to-be-portable C software library I had
> developed didn't run properly on a particular microcontroller - until
> finding out that a "char" data type (the smallest data type in C,
> typically equalling a byte) was actually 16 bits wide on that rascal. "A
> byte? What's that, Sir?" Doesn't make life easier when you're developing a
> portable library for a communications interface heavily based on the
> concept of the 8-bit thing.

A C 'char' type MUST be exactly 1 byte long (in particular, sizeof(char)
MUST be 1). However, a C implementation may define "byte" with more than 8
bits.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.