diff options
Diffstat (limited to 'source/tools/acpisrc/asutils.c')
| -rw-r--r-- | source/tools/acpisrc/asutils.c | 36 | 
1 files changed, 35 insertions, 1 deletions
| diff --git a/source/tools/acpisrc/asutils.c b/source/tools/acpisrc/asutils.c index f3d9350a3108..a35859696546 100644 --- a/source/tools/acpisrc/asutils.c +++ b/source/tools/acpisrc/asutils.c @@ -5,7 +5,7 @@   *****************************************************************************/  /* - * Copyright (C) 2000 - 2012, Intel Corp. + * Copyright (C) 2000 - 2013, Intel Corp.   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without @@ -44,6 +44,40 @@  #include "acpisrc.h" +/******************************************************************************* + * + * FUNCTION:    AsStrlwr (strlwr) + * + * PARAMETERS:  SrcString       - The source string to convert + * + * RETURN:      None + * + * DESCRIPTION: Convert string to lowercase + * + * NOTE: This is not a POSIX function, so it appears here so that we don't have + * header file issues with the various hosts/compilers/clibs. + * + ******************************************************************************/ + +void +AsStrlwr ( +    char                    *SrcString) +{ +    char                    *String; + + +    /* Walk entire string, lowercasing the letters */ + +    if (SrcString) +    { +        for (String = SrcString; *String; String++) +        { +            *String = (char) ACPI_TOLOWER (*String); +        } +    } +} + +  /******************************************************************************   *   * FUNCTION:    AsSkipUntilChar | 
