source= http://www.piclist.com/piclist/2006/01/05/130642a.txt? Rolf says: > You will notice that it "optimizes" the strings so that if > any string appears at the end of another string it will > "double up" that string value (AAAA is a subset of CCAAAA). > > To use this code it becomes a "simple" case of: > > void LCDPrintString(int pos) { while (strings[pos]) > LCDWriteChar(strings[pos++]); } > > ..... LCDPrintString(M_MENU); LCDPrintString(M_SUPERSET); > .... The code string optimizer / pointer program is up on piclist.com at: http://www.piclist.com/techref/microchip/language/C/StringFormat.htm Really a very nice idea once you understand it. --- James Newton: PICList webmaster/Admin mailto:jamesnewton@piclist.com 1-619-652-0593 phone http://www.piclist.com/member/JMN-EFP-786 PIC/PICList FAQ: http://www.piclist.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist