2 * See the file LICENSE for redistribution information.
4 * Copyright (c) 1997-2009 Oracle. All rights reserved.
15 * Return if a path is an absolute path.
23 * Check for drive specifications, e.g., "C:". In addition, the path
24 * separator used by the win32 DB (PATH_SEPARATOR) is \; look for both
25 * / and \ since these are user-input paths.
27 if (isalpha(path[0]) && path[1] == ':')
29 return (path[0] == '/' || path[0] == '\\');