towctrans(3)
β¨ towctrans(3) β wide-character transliteration β¨
okay bestie, welcome to the Library Functions Manual, section 3 π this lil page is literally about towctrans() and it's giving glow-up energy for wide characters π
πΈ NAME πΈ
towctrans β wide-character transliteration
like, it transforms your wide char. no cap.
π LIBRARY π
Standard C library (libc, -lc) π«Ά
π¦ SYNOPSIS π¦
#include <wctype.h>
wint_t towctrans(wint_t wc, wctrans_t desc);
π DESCRIPTION π
so here's the tea β β if wc is a wide character, then towctrans() translates it according to the transliteration descriptor desc. that's the whole vibe. β¨
and if wc is WEOF, then WEOF gets returned. like, it just hands it right back. iconic behavior honestly π
desc must be a transliteration descriptor returned by the wctrans(3) function. that's not a suggestion bestie, that's the rule π
π RETURN VALUE π
The towctrans() function returns the translated wide character π β or WEOF if wc is WEOF. that's it, that's the whole return situation. slay.
π₯ ATTRIBUTES π₯
For an explanation of the terms used in this section, see attributes(7).
- Interface:
towctrans() - Attribute: Thread safety
- Value: MT-Safe β
so like, you can run it from multiple threads and it's chill π
π STANDARDS π
C11, POSIX.1-2008. β¨ certified, official, legally iconic.
π HISTORY π
POSIX.1-2001, C99. so it's been around for a minute. a legacy queen fr fr π
π NOTES π
The behavior of towctrans() depends on the LC_CTYPE category of the current locale. π
so likeβ¦ locale matters!! if your output is doing something weird, check your LC_CTYPE before you spiral. iykyk πΈ
π«Ά SEE ALSO π«Ά
and that's the whole page bestie!! π¦β¨ this cutie comes to you from Linux man-pages 6.20, dated 2026-02-08 β go forth and transliterate responsibly πππ
π¦ where this page comes from
- 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 6.20
- π the page's license: GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms