Delta_G:
Maybe we should start looking at the real issue now instead of this contrived example. What are you really trying to do?
Let's start from begining:
I wish a "simple" function to be able to populate values from a char array or a String:
The first char from the input data need to be avoided:
char* toSplit = "#This@is@a@string@to@split";
So, # need to be skipped (that why I asked for starting position) and the data need to be splitted at every @ separator.
Your first untested example was working just fine in the Loop, but I need to put into function.