fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * IPRT - RTPathStripFilename
c58f1213e628a545081c70e26c6b67a841cff880vboxsync * Copyright (C) 2006-2012 Oracle Corporation
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * available from http://www.virtualbox.org. This file is free software;
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * you can redistribute it and/or modify it under the terms of the GNU
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * General Public License (GPL) as published by the Free Software
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * The contents of this file may alternatively be used under the terms
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * of the Common Development and Distribution License Version 1.0
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * VirtualBox OSE distribution, in which case the provisions of the
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * CDDL are applicable instead of those of the GPL.
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * You may elect to license modified versions of this file under the
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * terms and conditions of either the GPL or the CDDL or both.
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync/*******************************************************************************
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync* Header Files *
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync*******************************************************************************/
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * Strips the filename from a path. Truncates the given string in-place by overwriting the
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * last path separator character with a null byte in a platform-neutral way.
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * @param pszPath Path from which filename should be extracted, will be truncated.
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync * If the string contains no path separator, it will be changed to a "." string.
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync /* handle separators. */
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync /* the end */
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync /* no directory component */
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync /* only root. */
fe02cc356f7bd01a7ffbcd6ceb8ca09bb1c35330vboxsync /* will never get here */