_TOLOWER(3P)
π _TOLOWER(3P) β the POSIX girlie's guide π
okay so bestie, we're looking at _tolower(3P) from the POSIX Programmer's Manual, and honestly? she's a little retro, a little deprecated, but she's still iconic. let's get into it π¦
β¨ PROLOG β¨
so like, real talk first: 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 deets on Linux behavior. OR, plot twist, the interface might not even be implemented on Linux at all. π no cap, check before you ship.
πΈ NAME πΈ
_tolower β transliterate uppercase characters to lowercase
that's it, that's the whole job. lowercase-ify your uppercase letters, nothing more π
π SYNOPSIS π
#include <ctype.h>
int _tolower(int c);
π DESCRIPTION π
okay so the _tolower() macro shall be equivalent to tolower(c) β except! and this is the important part, the β¨fine printβ¨ β the application shall ensure that the argument c is an uppercase letter.
so like. you're on your own to vibe-check your input before you hand it over. _tolower() is not here to babysit you. π«Ά
β RETURN VALUE β
upon successful completion, _tolower() shall return the lowercase letter corresponding to the argument passed. she gives you back your letter, but tiny. lowercase era. π
π₯ ERRORS π₯
No errors are defined.
and also, lowkey iconic of them to just say this β the following sections are informative.
π EXAMPLES π
None.
literally none. they didn't give us a single one. bestie we are on our own out here π (but it's giving confident, honestly)
π APPLICATION USAGE π
applications should use the tolower() function instead of the obsolescent _tolower() function.
π¨ translation:_tolower()is obsolescent. like, old-school. she's giving vintage. usetolower()instead, fr fr.
π¦ RATIONALE π¦
None.
they said no thoughts, head empty, no rationale. periodt. π
πΈ FUTURE DIRECTIONS πΈ
the _tolower() function may be removed in a future version.
π¨ so like, she might get cancelled. write your code accordingly bestie, don't build your whole personality around her.
π SEE ALSO π
tolower()isupper()
and also from The Base Definitions volume of POSIX.1β2017: Chapter 7, Locale, and <ctype.h>
π COPYRIGHT π
okay so this is the part where we give credit, and we're gonna do it properly because we respect the elders:
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 one came to you from IEEE/The Open Group, 2017 β big thanks to the icons, we love them, we stan, no notes. now go use tolower() instead, okay? ily, bye!! πβ¨π
π¦ where this page comes from
- alpine 3.22: man-pages-posix 2017a-r0 Β· custom
- alpine 3.23: man-pages-posix 2017a-r0 Β· custom
- alpine 3.24: man-pages-posix 2017a-r0 Β· custom
- arch rolling: man-pages 6.19-1
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 Β· SUSE-IEEE
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms