]> sigrok.org Git - libsigrok.git/commit
strutil: accept leading whitespace in parse rational
authorGerhard Sittig <redacted>
Thu, 19 Jul 2018 19:10:15 +0000 (21:10 +0200)
committerUwe Hermann <redacted>
Sun, 22 Jul 2018 14:36:15 +0000 (16:36 +0200)
commit7f5bfd613058ce09b267294004717eed2fc2582c
tree6c58ba6b573f7dddd7c100d559e841783e60e83d
parent42408643f9dcb80d1744aaa4d08e0170594daad1
strutil: accept leading whitespace in parse rational

Programmatic output of floating point numbers might choose to print
spaces instead of an explicit '+' sign, to align the output with the
result of formatting negative numbers yet achieve a screen appearance
similar to what humans would have written. Skip leading whitespace
before insisting in seeing either signs or digits or decimals.
src/strutil.c