Alan B. Pearce wrote: >>I use Pascal's string encoding method by making the first >>byte be the length of the string. > > ... > >> const char *Messages[] = {m1,m2,m3,m4}; >> >>(It's a little harder to get C to automatically figure out >>the length of a string and encode it in the Pascal style.) > > > I done something similar, but used C style strings with a null byte at the > end, then scanned the string until I reached the null. That works too as long as you know your strings don't have intentional 0's. In my case, this same routine sends arbitrary binary data. Scott -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist