libsigrok/src
Gerhard Sittig b8278e0943 strutil: accept trailing whitespace after number text
Some SCPI based drivers fail to convert response data, because strutil
conversion helpers sr_atol() and sr_atof() don't like trailing spaces
after the number's text that successfully got converted.

It's yet to get determined whether all call sites of the conversion
routines like their eating adjacent whitespace. But given that the
conversion routine explicitly checks for end of the string after the
number, no call site should expect or even depend on trailing text to
keep its whitespace.

See bug #788 for a discussion and example data.
2018-02-09 22:40:58 +01:00
..
dmm drivers: Fix locale dependent string to float conversion 2017-11-11 19:46:52 +01:00
hardware beaglelogic: silence compiler warning 2018-02-09 21:59:18 +01:00
input input/raw_analog: silence "use after free" compiler warning 2018-02-08 21:47:21 +01:00
lcr lsr/es51919: support channel selection (enable/disable P1/P2) 2017-08-19 19:21:53 +02:00
modbus drivers: Use serial_write_blocking() everywhere. 2017-08-07 14:22:52 +02:00
output srzip: don't access non-existing option 2018-02-09 21:59:18 +01:00
scale license: remove FSF postal address from boiler plate license text 2017-01-07 16:05:39 +01:00
scpi scpi: avoid uninitialized use of a variable 2018-02-09 21:32:11 +01:00
transform license: remove FSF postal address from boiler plate license text 2017-01-07 16:05:39 +01:00
analog.c Various Doxygen fixes. 2017-06-12 02:44:28 +02:00
backend.c backend: fixup resource leak in sr_init() error code path 2018-02-09 21:59:18 +01:00
conversion.c Introduce A2L methods 2017-07-06 00:16:24 +02:00
device.c sr_dev_close(): Drop unneeded variable. 2017-12-24 15:23:40 +01:00
driver_list_start.c drivers: Remove dependency on linker implementation specific behaviour 2017-09-02 17:06:37 +02:00
driver_list_stop.c drivers: Remove dependency on linker implementation specific behaviour 2017-09-02 17:06:37 +02:00
drivers.c drivers: Remove dependency on linker implementation specific behaviour 2017-09-02 17:06:37 +02:00
error.c license: remove FSF postal address from boiler plate license text 2017-01-07 16:05:39 +01:00
ezusb.c drivers: Load firmware via new resource API 2015-10-01 15:44:55 +02:00
fallback.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
hwdriver.c drivers: SR_CONF_CAPTURE_RATIO fixes. 2017-07-31 16:23:32 +02:00
libsigrok-internal.h drivers: Fix locale dependent string to float conversion 2017-11-11 19:46:52 +01:00
log.c log: flush log lines, to cope with non-terminal output (pipes) 2018-02-09 21:59:18 +01:00
resource.c resource: Also check $SIGROK_FIRMWARE_DIR for firmware files. 2017-08-15 22:15:47 +02:00
scpi.h SCPI: add sr_scpi_write_data() 2017-03-11 13:47:39 +01:00
serial.c Remove some unneeded double-spaces. 2016-08-29 21:51:27 +02:00
session.c session: fixup access to uninitialized memory 2018-02-09 21:32:11 +01:00
session_driver.c session_driver: avoid division by zero, catch API violation 2018-02-09 21:34:09 +01:00
session_file.c session_file: Start out with SR_ST_INACTIVE like all drivers. 2017-07-08 14:25:23 +02:00
soft-trigger.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
std.c Add std_session_send_frame_begin/end helpers 2017-10-03 17:31:48 +02:00
strutil.c strutil: accept trailing whitespace after number text 2018-02-09 22:40:58 +01:00
sw_limits.c Remove some unneeded double-spaces. 2016-08-29 21:51:27 +02:00
trigger.c Remove some unneeded double-spaces. 2016-08-29 21:51:27 +02:00
usb.c usb: re-use existing values, don't re-determine bus and device address 2018-02-09 21:59:18 +01:00
version.c license: remove FSF postal address from boiler plate license text 2017-01-07 16:05:39 +01:00