Something is strange here! printf does not see the data type anyway. Regardless of the sign of the type, %u should always render a positive number. Try %ud and %x and see what happens. Henrik http://www.proconx.com