STRTOLD(3P)

πŸ’– STRTOLD(3P) β€” POSIX Programmer's Manual πŸ’–

okay bestie, so this is the POSIX Programmer's Manual page for strtold, and before we even get into it, there's a lil heads-up you need:

🫢 PROLOG 🫢

This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.

ngl that's the whole vibe check right there β€” POSIX says one thing, your actual Linux box might say another, and sometimes the thing isn't even implemented. always check the Linux page too, fr fr. πŸ’…

✨ NAME ✨

strtold β€” convert a string to a double-precision number

like. it takes a string. it gives you back a number. the double-precision kind. iconic behavior honestly.


🌸 SYNOPSIS 🌸

#include <stdlib.h>

long double strtold(const char *restrict nptr, char **restrict endptr);

look at that signature, it's giving restrict twice, it's giving long double energy, it's giving "I know exactly what I'm doing". πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

Refer to strtod().

yes. that's it. that's the whole description. the way this page just points you at its sibling and dips? main character energy. 😭 go read strtod() bestie, all the actual deets live over there. iykyk.

Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .

okay so real talk: if this page and the official standard ever disagree, the standard wins, no cap. this version is the vibe, the standard is the law. and if you spot a typo? it's probably from the man-page conversion, not the source material β€” report it at that kernel.org link. 🫑

and that's a wrap!! πŸŽ€ this lil page was brought to you by IEEE/The Open Group, 2017 β€” same year, same energy, still the reference doc for STRTOLD(3P). slay, go convert some strings. πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from