mariadb/storage/bdb/os/os_abs.c
2005-07-20 15:48:22 -07:00

29 lines
494 B
C

/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1997-2004
* Sleepycat Software. All rights reserved.
*
* $Id: os_abs.c,v 11.7 2004/01/28 03:36:18 bostic Exp $
*/
#include "db_config.h"
#ifndef NO_SYSTEM_INCLUDES
#include <sys/types.h>
#endif
#include "db_int.h"
/*
* __os_abspath --
* Return if a path is an absolute path.
*
* PUBLIC: int __os_abspath __P((const char *));
*/
int
__os_abspath(path)
const char *path;
{
return (path[0] == '/');
}