C++ may understand that line, but normal C will not. If you want to copy a string, you need to use the strcpy function (the prototype will be found in string.h). I don't know if CC5X includes any of the standard string functions, but that's your problem. The line you wrote will probably just assign a pointer to string to point into ROM, leaving the original 10 bytes reserved for string lost. -----Original Message----- From: Tobie Horswill [mailto:thorswil@VIDEOTRON.CA] Sent: Friday, October 13, 2000 12:19 am To: PICLIST@MITVMA.MIT.EDU Subject: [PIC]: C compilers Sorry! I forgot to label my first post properly ... ____________________________________ Hi, I'm currently trying out the CC5X Free compiler and was surprised to find it doesn't seem to deal with strings at all. The first app I built sends a 10 character string through the USART Tx pin. I started by defining a char array (char string[10]; works ok) and then tried to assign it a value (string = 'Hello!'; not ok). I was only able to initialize my "string" by individualy giving values to every byte in my array (string[0]='H'; string[1]='e'; and so on). Is this a normal behaviour for a PIC C compiler ? Do the Hitec and CCS compiler support strings ? Tobie -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu WABTEC CORPORATION CONFIDENTIALITY NOTE The content contained in this e-mail transmission is legally privileged and confidential information intended only for the use of the individual or entity named herein. If the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this transmission is strictly prohibited. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu