Changed every call to sscanf to include the %n directive.master
commitc4ba2bde70797adb27690efc033f0c4898668547
authorStefan 'psYchotic' Zwanenburg <stefanhetzwaantje@gmail.com>
Wed, 3 Feb 2010 18:25:39 +0000 (3 19:25 +0100)
committerStefan 'psYchotic' Zwanenburg <stefanhetzwaantje@gmail.com>
Wed, 3 Feb 2010 18:25:39 +0000 (3 19:25 +0100)
tree0a4e6a3cbff2946621ab1bbae8c0a86d00371c65
parent242715a8e61b347cd86df507b65d6565cf5bc537
Changed every call to sscanf to include the %n directive.
This is useful mostly for scanning numeric values, as a trailing
non-numeric character is ignored by *scanf's. So what needs to be done
is:
sscanf(string, "%d%n", &someint, &read_chars) && read_chars == strlen(string).
ss.c