Ultrix-3.1/src/libc/sysV/tolower.c
/**********************************************************************
* Copyright (c) Digital Equipment Corporation 1984, 1985, 1986. *
* All Rights Reserved. *
* Reference "/usr/src/COPYRIGHT" for applicable restrictions. *
**********************************************************************/
/* SCCSID: @(#)tolower.c 3.0 4/22/86 */
/* (System 5) 1.2 */
/* 3.0 SID # 1.2 */
/*LINTLIBRARY*/
/*
* If arg is upper-case, return the lower-case, else return the arg.
*/
int
tolower(c)
register int c;
{
if(c >= 'A' && c <= 'Z')
c -= 'A' - 'a';
return(c);
}