jimmie
Junior Member
Posts: 86
|
Post by jimmie on Jul 25, 2019 11:31:29 GMT
I would like to check with the community as to the reason why the following statement compiles but does not work (system hangs):
byte ip[4]; char buf[str[0].length() + 1]; //contents of buf check OK.
sscanf(buf, "%u.%u.%u.%u", &ip[0], &ip[1], &ip[2], &ip[3]); //Causes system to hang
I have done a lot of debugging and this is definitely the statement that is causing the problem. The skecth simply never passes this line ..
|
|