scan_double(3)
π scan_double(3) π
okay bestie, so we're in the Library Functions Manual, section 3, and the star of today's episode is scan_double β the little function that takes a floating point number written out in decimal ASCII and turns it into an actual double. no cap. π¦
β¨ NAME β¨
scan_double β parse a floating point number in decimal ASCII representation π
β¨ SYNTAX β¨
#include <libowfat/scan.h>
size_t scan_double(const char *src,double *dest);
like, that's it. that's the whole vibe check. π
β¨ DESCRIPTION β¨
so here's the tea, bestie: scan_double parses a floating point number in decimal ASCII representation from src, and then it writes the result into dest. πβ¨
and the return value? it gives you back the number of bytes read from src. that's a size_t, so it's a count, it's giving "how much of this string did I actually consume". π₯
β¨ SEE ALSO β¨
go read those too, iykyk π
and that's the whole page, periodt. this was scan_double(3), page of the Library Functions Manual section 3 β catch you in the next one, mwah π«ΆππΈ
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· GPL-2.0-only
- debian bookworm: libowfat-dev 0.32-4 Β· GPL-2.0-only
- debian trixie: libowfat-dev 0.32-5 Β· GPL-2.0-only
- nixos 26.05: libowfat 0.34
- nixpkgs unstable: libowfat 0.34
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- ubuntu noble: libowfat-dev 0.32-4.1build1 Β· GPL-2.0-only
- ubuntu questing: libowfat-dev 0.32-5
- ubuntu resolute: libowfat-dev 0.34-2 Β· GPL-2.0-only
- ubuntu stonking: libowfat-dev 0.34-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms