xref: /titanic_50/usr/src/cmd/sendmail/db/os/os_abs.c (revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968)
1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 1997, 1998
5  *	Sleepycat Software.  All rights reserved.
6  */
7 
8 #include "config.h"
9 
10 #ifndef lint
11 static const char sccsid[] = "@(#)os_abs.c	10.9 (Sleepycat) 7/21/98";
12 #endif /* not lint */
13 
14 #ifndef NO_SYSTEM_INCLUDES
15 #include <sys/types.h>
16 #endif
17 
18 #include "db_int.h"
19 
20 /*
21  * __os_abspath --
22  *	Return if a path is an absolute path.
23  *
24  * PUBLIC: int __os_abspath __P((const char *));
25  */
26 int
27 __os_abspath(path)
28 	const char *path;
29 {
30 	return (path[0] == '/');
31 }
32