#4 Yep ... Hay I never said I could count.
Great answers thanks.
The serial.print thing must have been due to what I would have been trying to do with conStg in the first place, that bit I do get.
These I had no clue about,
strcmp > String Compare right?
strcat > Is this actually concatenate which is why you empty be string first
If it is concatenate would the following be valid? How is the terminating character handled?
conStg[0] = '\0';
strcat(conStg, "Some ");
strcat(conStg, "constant ");
strcat(conStg, "string"); // conStg now contains "Some constant string" and a terminating null character
The empty buffer line ...
Will that work on a char[] that already has contents reducing the size of the array? or is it only valid when initialising the variable?
Off topic but its my thread ... ]
Are there function that will do this kind of stuff for none char arrays?
These are C functions right, is there list of string functions anywhere?
I have been trying to look things up for myself but my lack of basic C skills is hampering my ability to identify when I have found something useful.
It also doest help that I have realised now that I done even know what I need.
I am about to go and rebuild my little test script without using String .... THANKS