sync master with lastest vba changes
[ooovba.git] / dmake / msdos / dirbrk.c
blob2b8dead1f8482fd9c75195b738c7b70b9ff04276
1 /* RCS $Id: dirbrk.c,v 1.1.1.1 2000-09-22 15:33:27 hr Exp $
2 --
3 -- SYNOPSIS
4 -- Define the directory separator string.
5 --
6 -- DESCRIPTION
7 -- Define this string for any character that may appear in a path name
8 -- and can be used as a directory separator.
9 --
10 -- AUTHOR
11 -- Dennis Vadura, dvadura@dmake.wticorp.com
13 -- WWW
14 -- http://dmake.wticorp.com/
16 -- COPYRIGHT
17 -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
18 --
19 -- This program is NOT free software; you can redistribute it and/or
20 -- modify it under the terms of the Software License Agreement Provided
21 -- in the file <distribution-root>/readme/license.txt.
23 -- LOG
24 -- Use cvs log to obtain detailed change logs.
27 #include "extern.h"
29 /* dos uses /, \, and : */
30 char* DirBrkStr = "/\\:";
33 ** Return TRUE if the name is the full specification of a path name to a file
34 ** starting at the root of the file system, otherwise return FALSE
36 PUBLIC int
37 If_root_path(name)
38 char *name;
40 return( (strchr(DirBrkStr, *name) != NIL(char)) ||
41 (isalpha(*name) && name[1] == ':') );