Re: (OT) Defining Variables in C with Bases other than 2 or 16
Thanks to you and Martin F Krafft. I wanted a variable that
would roll over to 0 after reaching 11 for a base of 12.
I have written code that does this sort of modulo arithmetic before
so it won't be anything special, but I thought I would ask to make
sure I wasn't re-inventing the wheel.
Micha Feigin writes:
>You can use structs with bitfields. See for example
>Take note though that you won't really save much space here since due to CPU a
>memory access limitations the data sizes are always rounded at least to the
>closest builtin type (char(8),short(16),long/word(32)).
>There are usually architecture limitations dictating aligning requirements on
>> Martin McCormick WB5AGZ Stillwater, OK
>> OSU Information Technology Division Network Operations Group
>> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
>> with a subject of "unsubscribe". Trouble? Contact email@example.com
>> This Mail Was Scanned By Mail-seCure System
>> at the Tel-Aviv University CC.
>To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
>with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org