Fixed two sscanf() issues: 1) sscanf() always reported as result value the number of wanted arguments, even if it was not able to get all of them. 2) sscanf() would return conversion success for the last argument even if the last character is a space symbol
Merge branch 'master' of github.com:PX4/NuttX
Cover a range of sscanf() corner cases, including %n not being the last format specifier and trailing characters after a successful number pattern. Behaves mostly now as the POSIX variant, with all tested non-error cases being exactly the same. In particular for %n the number of returned characters now matches correctly in presence of trailing whitespace.
Also consider negative values to be valid
Also consider negative values to be valid, and while we are at it add support for the full valid C99 number symbol range plus the binary numbers NuttX supports