Functions | |
BOOLEAN EFIAPI | PathRemoveLastItem (IN OUT CHAR16 *Path) |
CHAR16 *EFIAPI | PathCleanUpDirectories (IN CHAR16 *Path) |
Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Function to clean up paths.
This will be done inline and the existing buffer may be larger than required upon completion.
[in] | Path | The pointer to the string containing the path. |
References CHAR_NULL, CopyMem(), NULL, PathRemoveLastItem(), StrLen(), StrSize(), and StrStr().
Removes the last directory or file entry in a path by changing the last L'\' to a CHAR_NULL.
[in,out] | Path | A pointer to the path to modify. |
FALSE | Nothing was found to remove. | |
TRUE | A directory or file was removed. |
References CHAR_NULL, FALSE, NULL, and TRUE.
Referenced by PathCleanUpDirectories().