Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ctype(3C)

setlocale(3C)

iswalpha(3I)

stdio(3S)

wconv(3I)

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. 

SunOS 5.5/x86  —  Last change: 22 Jan 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026