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