/*static char *SCCSID = "@(#)cmlower.c	6.2 90/12/10";                                 */
/****************************************************************************/
/*                                                                          */
/*                       IBM/Microsoft Confidential                         */
/*                                                                          */
/*                 Copyright (c) IBM Corporation  1987, 1990                */
/*                 Copyright (c) Microsoft Corp.  1987, 1990                */
/*                           All Rights Reserved                            */
/*                                                                          */
/****************************************************************************/
/******** START OF SPECIFICATION ******* IBM CONFIDENTIAL ************/
/*                                                                   */
/* SUBROUTINE NAME:  COM_TOLOWER                                     */
/*                                                                   */
/* DESCRIPTIVE NAME:  CONVERTS A CHARACTER TO LOWERCASE              */
/*                                                                   */
/* FUNCTION:                                                         */
/*                                                                   */
/*                                                                   */
/* NOTES:                                                            */
/*                                                                   */
/*                                                                   */
/* ENTRY POINT:  com_tolower                                         */
/*   LINKAGE  :                                                      */
/*                                                                   */
/* INPUT:  int ch    -- character to be converted to lowercase       */
/*                                                                   */
/* EXIT:                                                             */
/*                                                                   */
/*                                                                   */
/* EXIT-NORMAL: Converted character                                  */
/*                                                                   */
/* EXIT-ERROR:  none                                                 */
/*                                                                   */
/*                                                                   */
/* EFFECTS:                                                          */
/*                                                                   */
/* INTERNAL REFERENCES: none                                         */
/*   ROUTINES:                                                       */
/*                                                                   */
/* EXTERNAL REFERENCES:                                              */
/*   ROUTINES:                                                       */
/*                                                                   */
/* RELEASE:                                                          */
/*                                                                   */
/*   VERSION      DATE           REASON                              */
/*                                                                   */
/*     1.00     6/16/1986      initial version                       */
/*                                                                   */
/******************* END OF SPECIFICATIONS ***************************/
  #include "cmdbcs.h"                            /* dbcs externs                  */
                                                 /*                               */
  int com_tolower(ch)                            /*                               */
    unsigned char ch;                            /* char to be cnv to lowercase   */
                                                 /*                               */
  {                                              /*                               */
   com_settbl();                                 /* initialize DBCS table         */
                                                 /*                               */
   return(casemap_lo[ch]);                       /* convert to lowercase          */
  }                                              /*                               */
