Alright I need to say something.. stupid things still get me all the time: if(strcmp(x.str, x.str) == 0) is always true meant to be (x.str, y.str) switch(x) case x .... case 10: da da da .... case 20: do do do break default: error msg missing break on case 10.. hidden between all the others.. lots of other ones too, those just happened to happen today.. andrew -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist