aboutsummaryrefslogtreecommitdiffstats
path: root/source/components/utilities/utmisc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/components/utilities/utmisc.c')
-rw-r--r--source/components/utilities/utmisc.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/source/components/utilities/utmisc.c b/source/components/utilities/utmisc.c
index 062c768e72a0..7ce00df64281 100644
--- a/source/components/utilities/utmisc.c
+++ b/source/components/utilities/utmisc.c
@@ -55,6 +55,41 @@
/*******************************************************************************
*
+ * FUNCTION: UtConvertBackslashes
+ *
+ * PARAMETERS: Pathname - File pathname string to be converted
+ *
+ * RETURN: Modifies the input Pathname
+ *
+ * DESCRIPTION: Convert all backslashes (0x5C) to forward slashes (0x2F) within
+ * the entire input file pathname string.
+ *
+ ******************************************************************************/
+
+void
+UtConvertBackslashes (
+ char *Pathname)
+{
+
+ if (!Pathname)
+ {
+ return;
+ }
+
+ while (*Pathname)
+ {
+ if (*Pathname == '\\')
+ {
+ *Pathname = '/';
+ }
+
+ Pathname++;
+ }
+}
+
+
+/*******************************************************************************
+ *
* FUNCTION: AcpiUtValidateException
*
* PARAMETERS: Status - The ACPI_STATUS code to be formatted