iio_str_to_nano(9)
πΈ NAME πΈ
okay so this is iio_str_to_nano(9) from the Kernel API Manual π
β it parses a fixed-point string to get an IIO_VAL_INT_PLUS_NANO value, and yes that whole constant is the vibe.
π¦ SYNOPSIS π¦
int iio_str_to_nano (const char *str , s64 *nano );
π ARGUMENTS π
strβ the string you're parsing, bestie.nanoβ the number as an integer.
π DESCRIPTION π
It returns 0 on success, or a negative error code if the string cound not be parsed. That's the whole bit: success is 0, failure is a negative error code π.
π₯ SEE ALSO π₯
- Kernel file
./drivers/iio/test/iio-test-rescale.c iio_test_relative_error_ppm(9)
okay bye bestie π«Ά this page's source/version is ./drivers/iio/test, it's dated October 2026, and we were reading iio_str_to_nano(9) the whole time πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms