diff options
author | Hartmut Knaack <knaack.h@gmx.de> | 2015-05-31 14:40:00 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-05-31 19:18:55 +0100 |
commit | 096f9b862e605fe08bb30e4f7a381684a8ff82ed (patch) | |
tree | c8c8c7cc31ea17fce97564b2768e1a847dc19485 /lib | |
parent | dc8b5d6e633f8e54f70594d0be87aaf401ea0559 (diff) | |
download | linux-096f9b862e605fe08bb30e4f7a381684a8ff82ed.tar.bz2 |
tools:iio:iio_utils: implement digit calculation
Previously, the return value of sscanf() was treated as an indication of
the digits it would have read. Yet, sscanf() only returns the amount of
valid matches.
Therefore, introduce a function to calculate the decimal digits of the
read number and use this one to commence a colon search, as originally
intended.
Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions