Dear All,
I run into trouble by passing a char array from a function back to where it was called with a pointer. It seems to me like a bug. I try to explain the behavior:
This means actually it makes no sense to pass an arry or pointer after function call. I don't want to have stored the array inside test() permanently.
I just remembered some other example where the array to work on is passed by pointer like following example. Can you please have a look in this if this is the correct way of doing it?
What is the point of the ptArrayMain variable? What is it contributing to your sketch? Something like that looks completely unnecessary. Array types are already trivially convertable into pointers, you don't need to make a separate pointer variable to work with them.