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