Hi,
In arduino is it possible to pass strings as arguments to a function and in the function concatenate the strings and return the final string?
Thanks
Hi,
In arduino is it possible to pass strings as arguments to a function and in the function concatenate the strings and return the final string?
Thanks
it is possible, but might be easier using strcat and c style strings. ie:
char string1[32] = "I'm allergic to ";
char string2[10] = "cats";
strcat( string1, string2 ); // string1 now contains "I'm allergic to cats"