aboutsummaryrefslogtreecommitdiffstats
path: root/util/fileutil.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-03-09 21:44:06 +0000
committerWerner Koch <[email protected]>1998-03-09 21:44:06 +0000
commita6a8f1e706bd7e528262151bc04ebb9409c2eeed (patch)
tree20b5771581e695a22559d8ffe3f90862afb11e3d /util/fileutil.c
parentremoved g10maint.c (diff)
downloadgnupg-a6a8f1e706bd7e528262151bc04ebb9409c2eeed.tar.gz
gnupg-a6a8f1e706bd7e528262151bc04ebb9409c2eeed.zip
partial DSA support
Diffstat (limited to 'util/fileutil.c')
-rw-r--r--util/fileutil.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/util/fileutil.c b/util/fileutil.c
index e5f9311bc..f3e00f8d6 100644
--- a/util/fileutil.c
+++ b/util/fileutil.c
@@ -64,3 +64,26 @@ make_filename( const char *first_part, ... )
return name;
}
+
+/****************
+ * A simple function to decide, wether the filename ist stdout
+ * or a real filename.
+ */
+const char *
+print_fname_stdout( const char *s )
+{
+ if( !s || (*s == '-' && !s[1]) )
+ return "[stdout]";
+ return s;
+}
+
+
+const char *
+print_fname_stdin( const char *s )
+{
+ if( !s || (*s == '-' && !s[1]) )
+ return "[stdin]";
+ return s;
+}
+
+