projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Multiple registers (alpha early)
[idzebra-moved-to-github.git]
/
util
/
dirent.c
diff --git
a/util/dirent.c
b/util/dirent.c
index
2127fd4
..
232021d
100644
(file)
--- a/
util/dirent.c
+++ b/
util/dirent.c
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: dirent.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: dirent.c,v $
- * Revision 1.3 1999-02-02 14:51:38 adam
+ * Revision 1.4 2002-04-04 14:14:14 adam
+ * Multiple registers (alpha early)
+ *
+ * Revision 1.3 1999/02/02 14:51:38 adam
* Updated WIN32 code specific sections. Changed header.
*
* Revision 1.2 1997/09/17 12:19:24 adam
* Updated WIN32 code specific sections. Changed header.
*
* Revision 1.2 1997/09/17 12:19:24 adam
@@
-65,3
+68,16
@@
void closedir(DIR *dd)
}
#endif
}
#endif
+
+int zebra_is_abspath (const char *p)
+{
+ if (*p == '/')
+ return 1;
+#ifdef WIN32
+ if (*p == '\\')
+ return 1;
+ if (*p && p[1] == ':' && isalpha(*p))
+ return 1;
+#endif
+ return 0;
+}