I am trying to move my char pointer along my char array (a string), it doesn't work and I don't understand why.
My char array looks like this "5,true,-12,..."
Here is my code :
local_length = get_param_length(jump_next_param(param));
- local length is the param's length (without the comma)
- param is the string i want to parse
With the exemple I gave, before the line I wrote, local_length = 1 (5 length). After the line I wrote, local_length = 4 (true length).
But param still pointing to 5 and I want it pointing to t
Here is the code of jump_next_param():
static char* jump_next_param(char *param){
uint32_t jump_length = get_param_length(param);
param += jump_length + 1;
return param;}