Manpage of TOUPPER

Google
Web www.fiveanddime.net

TOUPPER

Section: NEWLIB (3)
Updated: 2005 Feb 23
Index Return to Main Contents
 

NAME

2.14 `toupper'--translate characters to upper case

 

SYNOPSIS


     #include <ctype.h>
     int toupper(int C);
     int _toupper(int C);  

DESCRIPTION

`toupper' is a macro which converts lower-case characters to upper case, leaving all other characters unchanged. It is only defined when C is an integer in the range `EOF' to `255'.


   You can use a compiled subroutine instead of the macro definition by undefining this macro using ``#undef toupper''.


   `_toupper' performs the same conversion as `toupper', but should only be used when C is known to be a lowercase character (`a'-`z').

 

RETURNS

`toupper' returns the upper-case equivalent of C when it is a character between `a' and `z', and C otherwise.


   `_toupper' returns the upper-case equivalent of C when it is a character between `a' and `z'. If C is not one of these characters, the behaviour of `_toupper' is undefined.

 

PORTABILITY

`toupper' is ANSI C. `_toupper' is not recommended for portable programs.


   No supporting OS subroutines are required.

 

SEE ALSO

toupper is part of the libc library. The full documentation for libc is maintained as a Texinfo manual. If info and libc are properly installed at your site, the command
info libc

will give you access to the complete manual.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURNS
PORTABILITY
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:25:33 GMT, May 16, 2005



www.fiveanddime.net








Google
Web www.fiveanddime.net