]> sigrok.org Git - libsigrok.git/commit
strutil: Add a atof variant that determines precision
authorAndreas Sandberg <redacted>
Thu, 3 Oct 2024 16:35:53 +0000 (17:35 +0100)
committerSoeren Apel <redacted>
Mon, 7 Oct 2024 12:46:49 +0000 (14:46 +0200)
commite6fcb482ad22bb5671bdc95ec742591d2fa684fe
treec56953acd0c4e268adb8e1eb5c5818855b9a4346
parentb6af0adb513db41ef43c05826af9072be8d00024
strutil: Add a atof variant that determines precision

There is already a helper to convert a string to a double and
determine its precision. Add a helper that does this for floats as
well.

Signed-off-by: Andreas Sandberg <redacted>
src/libsigrok-internal.h
src/strutil.c