## toupper

    Locale Convenience Function

- Summary
- Data Type and Member Function Indexes
- Synopsis
- Description
- Example
- See Also

### Summary

Converts a character to upper case.

### Data Type and Member Function Indexes
(exclusive of constructors and destructors)

None

### Synopsis

    #include <locale>
    template <class charT>
    charT toupper (charT c, const locale& loc) const;

### Description

The toupper function returns the parameter `c` after converting it to upper case. The conversion is made using the ctype facet from the locale parameter.

### Example

    //
    // toupper.cpp
    //
    #include <iostream>

    int main ()
    {
      using namespace std;
      locale loc;
      cout << 'a' << toupper('c') << tolower('F') << endl;

      return 0;
    }

### See Also

tolower, locale, ctype

Copyright (c) 1998, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.
OEM Release, June 1998