Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ toupper(3C++) — Sun WorkShop 5.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

toupper(3C++)

Standard C++ Library
Copyright 1998, Rogue Wave Software, Inc.

 

NAME

 
toupper
 
 - Converts a character to upper case.
 
 
 

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
 

Rogue Wave Software  —  Last change: 02 Apr 1998

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