Hi Van, Maybe you don't need to convert the hexidecimal number into binary. If you you use scanf() with the "%x", you can read a hexidecimal number. Then maybe a mask will help you find out what bits are on. Am I right? Best wishes, Bill
- error register Van N. Sy
- MCENANEY WILLIAM J