aboutsummaryrefslogtreecommitdiffstats
path: root/util/fileutil.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-06-11 07:16:50 +0000
committerWerner Koch <[email protected]>1998-06-11 07:16:50 +0000
commitd9b3dc000085007bdd198ca4c0500e80a72475d7 (patch)
treebb3ffa42fa8b9e30476fdbc843632c896fcfec37 /util/fileutil.c
parent. (diff)
downloadgnupg-d9b3dc000085007bdd198ca4c0500e80a72475d7.tar.gz
gnupg-d9b3dc000085007bdd198ca4c0500e80a72475d7.zip
update from tobold
Diffstat (limited to 'util/fileutil.c')
-rw-r--r--util/fileutil.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/util/fileutil.c b/util/fileutil.c
index 88c84ecff..2cedf0f9e 100644
--- a/util/fileutil.c
+++ b/util/fileutil.c
@@ -65,6 +65,20 @@ make_filename( const char *first_part, ... )
}
+int
+compare_filenames( const char *a, const char *b )
+{
+ /* ? check whether this is an absolute filename and
+ * resolve symlinks?
+ */
+ #ifdef __MINGW32__
+ return stricmp(a,b);
+ #else
+ return strcmp(a,b);
+ #endif
+}
+
+
/****************
* A simple function to decide whether the filename is stdout
* or a real filename.