After you've been bashed so hard:
Your original question "increment ptr while applying a function"
--> that's possible of course:
int get2Value(char* p) { return ( (*p) << 1) ; }
char buffer[20]={2,3,4,5,6,7,8,9};
char* ptr = buffer;
char len = 10;
...
void setup()
{
while (len-- != 0 )
{
Serial.print(get2Value(ptr++)); Serial.print(' '); // prints "4 6 8 10 12 14 16 18 0 0 "
}
}
This sample does not change the buffer content, but it increments ptr after it has been used to call a function.
Hope you get the other hints, too
