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