aboutsummaryrefslogtreecommitdiff
path: root/utilities/utmisc.c
diff options
context:
space:
mode:
Diffstat (limited to 'utilities/utmisc.c')
-rw-r--r--utilities/utmisc.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/utilities/utmisc.c b/utilities/utmisc.c
index 8357aceb318d..f3e2d180fcd0 100644
--- a/utilities/utmisc.c
+++ b/utilities/utmisc.c
@@ -505,6 +505,48 @@ AcpiUtStrupr (
}
+#ifdef ACPI_ASL_COMPILER
+/*******************************************************************************
+ *
+ * FUNCTION: AcpiUtStrlwr (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, not in utclib.c
+ *
+ ******************************************************************************/
+
+void
+AcpiUtStrlwr (
+ char *SrcString)
+{
+ char *String;
+
+
+ ACPI_FUNCTION_ENTRY ();
+
+
+ if (!SrcString)
+ {
+ return;
+ }
+
+ /* Walk entire string, lowercasing the letters */
+
+ for (String = SrcString; *String; String++)
+ {
+ *String = (char) ACPI_TOLOWER (*String);
+ }
+
+ return;
+}
+#endif
+
+
/*******************************************************************************
*
* FUNCTION: AcpiUtPrintString