TOWLOWER(3POSIX)
π TOWLOWER(3POSIX) π
okay bestie, so this is a page from the POSIX Programmer's Manual β we're in the 3POSIX section, and the star of the show is towlower. Let's get into it π«Ά
πΈ PROLOG πΈ
so like, real talk before we start: this manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (so if you're on Linux, pls go consult the corresponding Linux manual page for the actual Linux behavior, bestie), or β plot twist β the interface may not be implemented on Linux at all. π
β¨ NAME β¨
towlower, towlower_l β transliterate uppercase wide-character code to lowercase. it's giving lowercase era π
π SYNOPSIS π
#include <wctype.h>
wint_t towlower(wint_t wc);
wint_t towlower_l(wint_t wc, locale_t locale);
π¦ DESCRIPTION π¦
okay so for towlower(): the functionality described on this reference page is aligned with the ISO C standard. Any conflict between the requirements described here and the ISO C standard is unintentional β no drama intended fr fr. This volume of POSIX.1β2017 defers to the ISO C standard. periodt.
So the towlower() and towlower_l() functions have as a domain a type wint_t, the value of which the application shall ensure is a character representable as a wchar_t, and a wide-character code corresponding to a valid character in the locale used by the function, or the value of WEOF. If the argument has any other value, the behavior is undefined π (yes, undefined, we do not play with that).
If the argument of towlower() or towlower_l() represents an uppercase wide-character code, and there exists a corresponding lowercase wide-character code as defined by character type information in the current locale or in the locale represented by locale, respectively (category LC_CTYPE), the result shall be the corresponding lowercase wide-character code. All other arguments in the domain are returned unchanged. iconic behavior honestly π
β οΈ heads up bestie: the behavior is undefined if the locale argument totowlower_l()is the special locale objectLC_GLOBAL_LOCALEor is not a valid locale object handle. do not do this. i am begging π
β RETURN VALUE β
Upon successful completion, the towlower() and towlower_l() functions shall return the lowercase letter corresponding to the argument passed; otherwise, they shall return the argument unchanged. no cap. π«Ά
π ERRORS π
No errors are defined. not a single one. she simply does not fail (in the defined way) π
The following sections are informative.
π EXAMPLES π
None. (sorry bestie, the standard said no examples for this one π)
π APPLICATION USAGE π
None. (nothing here either, we're keeping it minimal β¨)
π§ RATIONALE π§
None. (yeah, none. the reasoning is a mystery, the vibe is immaculate)
π₯ FUTURE DIRECTIONS π₯
None. (she's stable, she's not going anywhere, main character energy)
π SEE ALSO π
setlocale()uselocale()
The Base Definitions volume of POSIX.1β2017, Chapter 7, Locale, <locale.h>, <wctype.h>
π COPYRIGHT π
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 .
and that's the whole page bestie!! π this lil masterpiece is brought to you by IEEE/The Open Group, dated 2017, and it lives in the TOWLOWER(3POSIX) era of your man pages. stay lowercase, stay slay β¨π¦
π¦ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 Β· Other
- debian trixie: manpages-posix-dev 2017a-2 Β· Other
- ubuntu jammy: manpages-posix-dev 2017a-2 Β· Other
- ubuntu noble: manpages-posix-dev 2017a-2 Β· Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 Β· Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 Β· Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms