bdavis
Joined: 31 May 2004 Posts: 86 Location: Colorado Springs, CO
|
|
Posted: Sat Sep 04, 2004 8:55 am |
|
|
I use strcpy(), which will accept a pointer to const for the second argument. If the function you are sending the pointer to only needs to operate on chars, then you can send a string of chars in one call, and CCS will call the routine for each char in the string. That is how printf() works in CCS. I also found that putting an array of strings in ram was taking two bytes per char - don't know why, but very expensive use of ram, so I put them all in Flash/Rom. |
|