RTPathStartsWithRoot.cpp revision 59058ad496c65087f27470b3e7b33d9132f7e13a
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* $Id$ */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/** @file
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * IPRT - RTPathStartsWithRoot
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/*
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Copyright (C) 2010 Oracle Corporation
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw *
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * This file is part of VirtualBox Open Source Edition (OSE), as
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * available from http://www.virtualbox.org. This file is free software;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * you can redistribute it and/or modify it under the terms of the GNU
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * General Public License (GPL) as published by the Free Software
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Foundation, in version 2 as it comes in the "COPYING" file of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw *
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * The contents of this file may alternatively be used under the terms
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * of the Common Development and Distribution License Version 1.0
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * VirtualBox OSE distribution, in which case the provisions of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * CDDL are applicable instead of those of the GPL.
cb174861876aea6950a7ab4ce944aff84b1914cdjoyce mcintosh *
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * You may elect to license modified versions of this file under the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * terms and conditions of either the GPL or the CDDL or both.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw */
bbf6f00c25b6a2bed23c35eac6d62998ecdb338cJordan Brown
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as/*******************************************************************************
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw* Header Files *
b1352070d318187b41b088da3533692976f3f225Alan Wright*******************************************************************************/
b1352070d318187b41b088da3533692976f3f225Alan Wright#include "internal/iprt.h"
b1352070d318187b41b088da3533692976f3f225Alan Wright#include <iprt/path.h>
b1352070d318187b41b088da3533692976f3f225Alan Wright
b1352070d318187b41b088da3533692976f3f225Alan Wright#include "internal/path.h"
b1352070d318187b41b088da3533692976f3f225Alan Wright
b1352070d318187b41b088da3533692976f3f225Alan Wright
b1352070d318187b41b088da3533692976f3f225Alan WrightRTDECL(bool) RTPathStartsWithRoot(const char *pszPath)
b1352070d318187b41b088da3533692976f3f225Alan Wright{
b1352070d318187b41b088da3533692976f3f225Alan Wright return rtPathRootSpecLen(pszPath) > 0;
b1352070d318187b41b088da3533692976f3f225Alan Wright}
b1352070d318187b41b088da3533692976f3f225Alan Wright
b1352070d318187b41b088da3533692976f3f225Alan Wright