In general, it may be useful to know what "MSB" means, because it depends on the machine. The following should be a simple and portable method of converting any unsigned integer to its binary representation:
yeah true... but it seems the bitshifting works correctly on whatever OS, so it's just the visual representation that can be a bit akward... but that was not a requirement ;-)
thanks for the info..
--
to ask a question is a moment of shame
to remain ignorant is a lifelong shame