diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2012-05-19 05:44:32 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2012-05-19 05:44:32 +0000 |
commit | fa948a817cf9dae39dc632f9bf48a8af37244a0e (patch) | |
tree | 83fbd480537714dcce335edc4aed3216f4e57816 /source/components/utilities/utmisc.c | |
parent | b43c4dd5abdb09fe2e7f73f186586b962c9dc9f5 (diff) |
Notes
Diffstat (limited to 'source/components/utilities/utmisc.c')
-rw-r--r-- | source/components/utilities/utmisc.c | 35 |
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 |