On Thu, Oct 25, 2001 at 04:06:16PM -0400, Microchip wrote: > I want to declare an array of strings like : > > const unsigned char Str1 [2][5] = {"Hello", "Bye "}; > > My problem is the compilator doesn't put the null caracter (\0) at end of each string. > On GCC it truncates. > I also try : > > const unsigned char Str1 [2][6] = {"Hello", "Bye "}; > > but it also doesn't work. It worked here. > > Please can someone help me? Why not const unsigned char *Str1[2] = {"Hello","Bye "}; ? BAJ -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics