diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1996-10-27 00:29:34 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1996-10-27 00:29:34 +0000 |
commit | af71ca755f8c45d88e7df376bf2fc7fa446ff8ec (patch) | |
tree | bac87473d2acbd3e63c1c136914977904090609e /lib/libz/gzio.c | |
parent | 75a1f5ef2c73aa00c1d004ae9a9f43b1bbd59aba (diff) |
Adds gz_iszipped() function.
Diffstat (limited to 'lib/libz/gzio.c')
-rw-r--r-- | lib/libz/gzio.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libz/gzio.c b/lib/libz/gzio.c index 7af63495ce5..8a2b770252d 100644 --- a/lib/libz/gzio.c +++ b/lib/libz/gzio.c @@ -3,7 +3,7 @@ * For conditions of distribution and use, see copyright notice in zlib.h */ -/* $Id: gzio.c,v 1.1 1996/07/27 02:39:45 tholo Exp $ */ +/* $Id: gzio.c,v 1.2 1996/10/27 00:29:33 millert Exp $ */ #include <stdio.h> @@ -521,3 +521,14 @@ char* gzerror (file, errnum) strcat(s->msg, m); return s->msg; } + +/* =========================================================================== + Returns true (1) if file is zipped, else returns false (0). +*/ +int gz_iszipped (file) + gzFile file; +{ + gz_stream *s = (gz_stream*)file; + + return(!(s->transparent)); +} |