Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

os_abs.c

00001 /*-
00002  * See the file LICENSE for redistribution information.
00003  *
00004  * Copyright (c) 1997-2005
00005  *      Sleepycat Software.  All rights reserved.
00006  *
00007  * $Id: os_abs.c,v 12.1 2005/06/16 20:23:23 bostic Exp $
00008  */
00009 
00010 #include "db_config.h"
00011 
00012 #ifndef NO_SYSTEM_INCLUDES
00013 #include <sys/types.h>
00014 #endif
00015 
00016 #include "db_int.h"
00017 
00018 /*
00019  * __os_abspath --
00020  *      Return if a path is an absolute path.
00021  *
00022  * PUBLIC: int __os_abspath __P((const char *));
00023  */
00024 int
00025 __os_abspath(path)
00026         const char *path;
00027 {
00028         return (path[0] == '/');
00029 }

Generated on Sun Dec 25 12:14:41 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2