WCSTOL(3)
π WCSTOL(3) β the girlies' guide to wide-char number converting β¨
okay so bestie, you're in the WCSTOL(3) part of the manual and lemme tell you, this one's a whole family reunion π«Ά
πΈ NAME
wcstol, wcstoul, wcstoll, wcstoull, wcstoimax, wcstoumax β the icons that convert a wide character string value into a long, unsigned long, long long, unsigned long long, intmax_t or uintmax_t integer π
π LIBRARY
Standard C Library (libc, -lc) β yeah she lives in libc, nothing exotic π
β¨ SYNOPSIS
#include <wchar.h>
long
wcstol(const wchar_t * restrict nptr, wchar_t ** restrict endptr,
int base);
unsigned long
wcstoul(const wchar_t * restrict nptr, wchar_t ** restrict endptr,
int base);
long long
wcstoll(const wchar_t * restrict nptr, wchar_t ** restrict endptr,
int base);
unsigned long long
wcstoull(const wchar_t * restrict nptr, wchar_t ** restrict endptr,
int base);
#include <inttypes.h>
intmax_t
wcstoimax(const wchar_t * restrict nptr, wchar_t ** restrict endptr,
int base);
uintmax_t
wcstoumax(const wchar_t * restrict nptr, wchar_t ** restrict endptr,
int base);
like, every single one takes the same three args β nptr, endptr, base β she's consistent, we love that for her π¦
π DESCRIPTION
so here's the tea β wcstol(), wcstoul(), wcstoll(), wcstoull(), wcstoimax() and wcstoumax() are literally the wide-character versions of strtol(), strtoul(), strtoll(), strtoull(), strtoimax() and strtoumax() respectively. same energy, but wide chars π
and because nobody needs me re-explaining the whole thing (ok maybe someone does but it's already been done), the manpage is like: refer to their manual pages (for example strtol(3)) for details. so go read those, bestie, that's where the real lore is πβ¨
π SEE ALSO
strtol(3)β the blueprint, the origin storystrtoul(3)β her unsigned sister
go give them a read, they're linked for a reason π«Ά
π STANDARDS
wcstol(), wcstoul(), wcstoll(), wcstoull(), wcstoimax() and wcstoumax() conform to ISO/IEC 9899:1999 ("ISO C99") β certified standards-compliant, no cap ππ₯
and that's the whole page, diva π this one's from Debian, dated September 7, 2002 β yes she's an older queen but she still serves β¨π bye bestie, go convert some wide strings π¦πΈ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2002 Tim J. Robbins
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms