_TOUPPER(3P)
π _TOUPPER(3P) β the POSIX Programmer's Manual era π
okay bestie, so before we even get into it: this page is part of the POSIX Programmer's Manual. π«Ά But heads up, the Linux implementation of this interface may be different (so like, go check the corresponding Linux manual page for the deets on Linux behavior), or honestly the interface might not even be implemented on Linux at all. π Not every glow-up ships everywhere, yk?
β¨ NAME β¨
_toupper β transliterate lowercase characters to uppercase
the way this one has a whole identity as "the lowercase-to-uppercase girlie"... she's giving simple, she's giving focused π
πΈ SYNOPSIS πΈ
#include <ctype.h>
int _toupper(int c);
π¦ DESCRIPTION π¦
So _toupper() is a macro, and it shall be equivalent to toupper() β except (and this is the whole plot twist) the application shall ensure that the argument c is a lowercase letter.
That's it. That's the vibe. You bring the lowercase letter, she brings the uppercase energy. β
lowkey important: you are the one responsible for c being lowercase. That's on you, bestie. π
π RETURN VALUE π
Upon successful completion, _toupper() shall return the uppercase letter corresponding to the argument passed.
like a little glow-up machine, but only for one character π
π§ ERRORS π§
No errors are defined. β¨
The following sections are informative.
π EXAMPLES π
None. π
not a single example, not even one. she said "figure it out." iconic behavior honestly.
π APPLICATION USAGE π
Applications should use the toupper() function instead of the obsolescent _toupper() function.
fr fr, _toupper() is giving obsolescent β like she's still cute but she's on her way out. Use toupper(). π
β RATIONALE β
None.
π FUTURE DIRECTIONS π
The _toupper() function may be removed in a future version. π
she might not make it to the next era. that's the tea. π
π«Ά SEE ALSO π«Ά
islower()toupper()
The Base Definitions volume of POSIX.1β2017, Chapter 7, Locale, <ctype.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 was brought to you by IEEE/The Open Group, 2017 β the _TOUPPER(3P) girlies stay winning, lowercase in, uppercase out, periodt. π
β¨π¦
π¦ 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