georg wrote: > > One more: > > char ntoh (int n) > { > return (n & 0x0f)["0123456789ABCDEF"]; > } > > ;-), > > Georg How much nicer it would have been if IBM had defined hex to take: return (n & 0x0f)["01234...@abcdefg"]; Reading hex would be so much easier.
Garst