Name

towupper - convert a wide character to uppercase

Library

libc.lib

Synopsis

  #include <wctype.h>
  wint_t towupper (wint_t wc);

Return values

If the argument is a lower-case letter, the towupper function returns the corresponding upper-case letter if there is one; otherwise the argument is returned unchanged.

Detailed description

The towupper function converts a lower-case letter to the corresponding upper-case letter.

The behavior of the towupper is affected by LC_CTYPE category of the current locale.


Examples

#include <wchar.h>
/* Illustrates how to use towupper API */
wint_t example_towupper(void)
{ 
 /* input character */
  wint_t lwc = L’m’; 
  wint_t uwc;
  /* convert a wide char from lower case to upper case */
  uwc = towupper(lwc);
 
 /* return the converted char or error if not */
  return uwc;
}



Limitations

The current implementation of towupper is dependent on the locale support of SYMBIAN. It doesn’t work for the locales which the SYMBIAN

See also

iswupper, toupper, towlower, wctrans
The towupper function conforms to -isoC-99.

Feedback

For additional information or queries on this page send feedback

© 2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user.

Top