Linux

  1. Home
  2. Computing & Technology
  3. Linux
Linux / Unix Command: tolower
Command Library

NAME

toupper, tolower - convert letter to upper or lower case  

SYNOPSIS

#include <ctype.h>

int toupper(int c);
int tolower(int c);
 

DESCRIPTION

toupper() converts the letter c to upper case, if possible.

tolower() converts the letter c to lower case, if possible.

If c is not an unsigned char value, or EOF, the behaviour of these functions is undefined.  

RETURN VALUE

The value returned is that of the converted letter, or c if the conversion was not possible.  

CONFORMING TO

ANSI C, BSD 4.3  

SEE ALSO

isalpha(3), setlocale(3), locale(7)


Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Explore Linux

About.com Special Features

Linux

  1. Home
  2. Computing & Technology
  3. Linux

©2009 About.com, a part of The New York Times Company.

All rights reserved.