Counting hexadecimal / binary

yeah! great! well, i was also interested in a solution writtten in C, as i it wouldnt be that easy like the above.

but thanks a lot! it works.