First of all, convert all your char representations of ints into *real* ints using atoi or atol stdlib.h functions. Then just do the compare... Kind regards -- Seb