linux-stable/tools/iio
Hartmut Knaack 096f9b862e 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>
2015-05-31 19:18:55 +01:00
..
generic_buffer.c tools:iio:generic_buffer: sign-extend and shift data 2015-05-31 17:42:32 +01:00
iio_event_monitor.c tools:iio:iio_event_monitor: save right errno 2015-05-31 17:34:05 +01:00
iio_utils.c tools:iio:iio_utils: implement digit calculation 2015-05-31 19:18:55 +01:00
iio_utils.h
lsiio.c tools:iio:lsiio: add closedir before exit 2015-05-31 17:30:29 +01:00
Makefile iio: make tools more cross-compilation friendly 2015-05-10 20:31:45 +01:00