strlwr.c 479 Bytes
/*---------------------------------------------------------------------*
        Copyright (C) 1997-1999 NINTENDO Co.,Ltd.
        
        $RCSfile: strlwr.c,v $
        $Revision: 1.1.1.1 $
        $Date: 2002/10/30 02:07:09 $
 *---------------------------------------------------------------------*/
#include    "string.h"

char *strlwr(char *str)
{
    char    *p = str;
    while(*p)   {
        if (*p>='A' && *p<='Z') *p += 'a' - 'A';
        p++;
    }
    return str;
}