It will be better if you debug and see if yourself.
Use it like this.
In the first line of the void main() place this code.
then compile the code and start debugger
Now select gsmBuffer variable and then right click it and add it to Watch List.
In watch list select gsmBuffer and click the ellipsis button and set it to display char.
Now use F8 to get to the Extract_Signal... line and then press F7. You end up inside the function. Here use F8 and step slowly and look at the watch list. You will see how the value is extracted.
Use it like this.
In the first line of the void main() place this code.
C:
char msg[40];
const char msg1[] = "AT+CSQ\r\n\r\n+CSQ: 99,99\r\nOK\r\n";
void main() {
Extract_Signal_Strength(gsmBuffer, CopyConst2Ram(msg, msg1));
}
Now select gsmBuffer variable and then right click it and add it to Watch List.
In watch list select gsmBuffer and click the ellipsis button and set it to display char.
Now use F8 to get to the Extract_Signal... line and then press F7. You end up inside the function. Here use F8 and step slowly and look at the watch list. You will see how the value is extracted.



