get a integer from char* ...?

PaulS:

but getting the number part from the char* seems more tricky..

Using atoi() is tricky?

trickiness is relative i guess, so tricky for me being unexperienced :slight_smile:
So, atoi will convert anything to integer, that's great. Then I would need first to convert the char array from say: 2, 5, 6 into 256, and not into 2+5+6 as integers and end up with 13. I guess that's where impulse to convert it to a String came from, I'm coming from Smalltalk (/Supercollider). How would I go about this in arduino?

PaulS:

        char* msg = (char*)malloc(size+1);

Not a good idea. You know the maximum (reasonable) size of a packet. Allocate a fixed size array.

Thanks, I know I can make this.

And thanks for the advice!