I don't use Hitech C but in standard C you want to write: ++(*var); in your function to increment the pointer. If var is const then the compiler should complain about your incrementing it. Do you get a warning ? Peter -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu