> char *p_tmp > int substraction; > for (i = 0, p_tmp = pnd_point; p_tmp-- != rx_array; i++) {} > for (j = 0, p_tmp = dec_point; p_tmp-- != rx_array; j++) {} > substraction = i - j; > > That seems horriblly inefficiant. A much faster way is to typcast to an appropriate sized integer. I thought pointer subtraction was allowed by the C standard and a quick google seems to agree with me. Of course PIC C compilers tend not to follow the standandards too closely in my experiance. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist