1 /* RCS $Id: dirbrk.c,v 1.4 2007-10-15 15:52:59 ihi Exp $
4 -- Define the directory separator string.
7 -- Define this string for any character that may appear in a path name
8 -- and can be used as a directory separator. Also provide a function
9 -- to indicate if a given path begins at the root of the file system.
12 -- Dennis Vadura, dvadura@dmake.wticorp.com
15 -- http://dmake.wticorp.com/
18 -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
20 -- This program is NOT free software; you can redistribute it and/or
21 -- modify it under the terms of the Software License Agreement Provided
22 -- in the file <distribution-root>/readme/license.txt.
25 -- Use cvs log to obtain detailed change logs.
31 /* os2 uses /, \, and : */
32 /* FIXME: The OS/2 port most probably wants to use the HAVE_DRIVE_LETTERS
33 * macro, see extern.h. */
34 char* DirBrkStr
= "/\\:";
36 /* Unix only uses / */
37 char* DirBrkStr
= "/";
41 ** Return TRUE if the name is the full specification of a path name to a file
42 ** starting at the root of the file system, otherwise return FALSE
48 return( strchr(DirBrkStr
, *name
) != NIL(char)
49 #ifdef HAVE_DRIVE_LETTERS
50 || (*name
&& name
[1] == ':' && isalpha(*name
))