String handling help appreciated


i want able send variable text strings lcd.  i want put text in variable call lcd handler function creating.  i have done far

char lcdmessage[200] = " ";  //allocate space 200 characters

later in various places want call lcd handler following

strcpy(lcdmessage, "some text")

then call lcd handler following (among other things)

serial.print(lcdmessage)

all of works fine love have available space have allocated lcdmessage variable.  perhaps define 200 characters , inadvertently send 205 characters...oops!

is there way make more dynamic?  am going string handling in right way begin with?  

thanks,

jim, k6jmg

what passing message string lcdhandler argument.


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > String handling help appreciated


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums