in reply to Bytes to bits

Take a look at vec. Also, the &, !, |, ^, <<, and >> operators are your friend. (Bit-manipulating and -shifting operators). (Those logic operators are just 1 character. & vs. &&)

------
We are the carpenters and bricklayers of the Information Age.

The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re: Bytes to bits
by Gerard (Pilgrim) on Aug 14, 2003 at 15:11 UTC
    ++ to both of you. vec() seems to do exactly what I want. Now I can play.

    Much appreciated

    Regards,
    Gerard