[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    wconv(3I) manual page Table of Contents

Name

wconv, towupper, towlower - Process Code character conversion macros

Synopsis

cc [ flag ... ] file ... -lw [ library ... ]


#include <widec.h>
#include <wctype.h>

int towlower(int c);

int towupper(int c);

MT-Level

MT-Safe with exceptions

Character Conversion Macros

These macros perform simple case conversions on Latin characters in Process Code, wchar_t, from the primary and supplementary codesets, by table lookup.

towupper(c)
converts the lower-case Latin character c to its upper-case equivalent. If c is not a lower-case Latin character c is returned.
towlower(c)
converts the upper-case character c to its lower-case equivalent. If c is not an upper-case Latin character c is returned.

See Also

ctype(3C) , setlocale(3C) , iswalpha(3I) , stdio(3S)

Notes

towupper and towlower can be used safely in a multi-thread application, as long as setlocale(3C) is not being called to change the locale.


Table of Contents