_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>


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