reading legacy floppy disks
James Knott
james.knott-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Sun Sep 10 12:48:18 UTC 2006
John Macdonald wrote:
> On Sat, Sep 09, 2006 at 11:33:58PM -0400, Christopher Browne wrote:
>> The sizes of char/short/int/long are not required to be any particular
>> size in the standard. If memory serves, the relationship needs to
>> hold that:
>>
>> sizeof(char) <= sizeof(short) <= sizeof(int) <= sizeof(long)
>>
>> But having 8 bit ints *is* consistent with...
>>
>> 8 <= 8 <= 8 <= 16
>
> But it is not consistant with the other rule about the
> size of an int - an int has to have enough bits to
> hold a pointer. For any machine with more than 256
> addressable units, an 8-bit int doesn't work.
>
As I mentioned in another wrong, I was probably wrong about the actual
int sizes, but was correct in that the sizes were different between
Turbo C on DOS and Borland C on OS/2.
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wini/Mailing_lists
More information about the Legacy
mailing list