I am trying to printf a series of strings in a program in CCS C on a PIC16C715 (my circuit prints to a serial LCD) something like this: Switch (state){ Case 0: Printf("Pancakes"); Break(); Case 1: Printf("Eggs"); break(); Case 3: Printf("Bacon"); break(); Case 4: Printf ("Biscuits"); Break; etc. etc. etc. } (actually it is about a dozen cases - you get the idea.) The entire Switch Case Printf routine takes up a whopping 700 bytes in my program. I thought it might be less memory intensive to do something like this, but I can't figure out the correct syntax: char Stuff[16]; Switch (state){ Case 0: Stuff ="Pancakes"; // this is not the proper syntax - won't compile Break(); Case 1: Stuff="Eggs"; break(); Case 3: Stuff = "Bacon"; break(); Case 4: Stuff = "Biscuits"; Break; } printf("%C", stuff); // this is not the proper syntax - won't compile You get the idea - set up a variable with the proper text string, then call ONE printf statement at the end. What is the correct way to achieve this result? This is actually two questions: 1. How do you set an array to a string? and 2. How do you print a variable that is an array of characters? -- Lawrence Lile -- Lawrence Lile Sr. Project Engineer Salton inc. Toastmaster Div. 573-446-5661 Voice 573-446-5676 Fax -- http://www.piclist.com hint: PICList Posts must start with ONE topic: "[PIC]:","[SX]:","[AVR]:" =uP ONLY! "[EE]:","[OT]:" =Other "[BUY]:","[AD]:" =Ads