< Patric Anvegard wrote: > Does anyone have a good solution on how to store text in memory? > I'm quite new in programming PIC:s in C. I use to program them in assembler > instead and there I should have used a table with "retlw table _value" but how do > I do this in C? I want to be able to make a function, something like this... > > Write_Display("Hello world"); > > void Write_Display(char *pointer) > { while (*pointer != 0) { Send_char(*pointer++); } } > > Am I on the right track? > > Any help would be appreciated! > > Patric AnvegŒrd > > Don't use explicit pointer arithmetic - write what you actually meant: for(i=0; i