WCSTOD(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸŽ€ WCSTOD(3) β€” direct from the Library Functions Manual πŸŽ€

✨ NAME ✨

okay so bestie, meet the trio: wcstof, wcstod, and wcstold β€” convert string to float, double or long double. That's the whole name-drop, and honestly? iconic. πŸ’…

πŸ“š LIBRARY πŸ“š

Standard C Library (libc, -lc). She's literally living in libc, no cap. 🫢

πŸ› οΈ SYNOPSIS πŸ› οΈ

The summons is giving β€œcopy me exactly”, so here it is with all the restrict energy intact:

#include <wchar.h>

float
wcstof(const wchar_t * restrict nptr, wchar_t ** restrict endptr);

long double
wcstold(const wchar_t * restrict nptr, wchar_t ** restrict endptr);

double
wcstod(const wchar_t * restrict nptr, wchar_t ** restrict endptr);

πŸ’¬ DESCRIPTION πŸ’¬

The wcstof(), wcstod(), and wcstold() functions are the wide-character versions of the strtof(), strtod(), and strtold() functions. For the details, refer to strtod(3) β€” that's the main character page with the full lore. 🫢

πŸ‘€ SEE ALSO πŸ‘€

πŸ“œ STANDARDS πŸ“œ

The wcstof(), wcstod(), and wcstold() functions conform to ISO/IEC 9899:1999 (β€œISO C99”). Slay, standardized. βœ…


okay that's the whole page, bestie. This one comes from Debian, dated February 22, 2003, and it's filed under WCSTOD(3) β€” mwah πŸ’‹

πŸ“¦ where this page comes from