summaryrefslogtreecommitdiff
path: root/contrib/puff
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:22:37 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:22:37 -0700
commit4b5a43a219d51066c01ff2ab86af18b967f2d0dd (patch)
tree4dcaf0cd18751d04cf638a9a6ec521990d4f2e90 /contrib/puff
parent086e982175da84b3db958191031380794315f95f (diff)
downloadzlib-1.2.0.5.tar.gz
zlib-1.2.0.5.tar.bz2
zlib-1.2.0.5.zip
zlib 1.2.0.5v1.2.0.5
Diffstat (limited to 'contrib/puff')
-rw-r--r--contrib/puff/README10
-rw-r--r--contrib/puff/puff.c2
-rw-r--r--contrib/puff/puff.h2
3 files changed, 7 insertions, 7 deletions
diff --git a/contrib/puff/README b/contrib/puff/README
index 59b3533..bbc4cb5 100644
--- a/contrib/puff/README
+++ b/contrib/puff/README
@@ -14,7 +14,7 @@ Why I wrote this --
14puff.c was written to document the deflate format unambiguously, by virtue of 14puff.c was written to document the deflate format unambiguously, by virtue of
15being working C code. It is meant to supplement RFC 1951, which formally 15being working C code. It is meant to supplement RFC 1951, which formally
16describes the deflate format. I have received many questions on details of the 16describes the deflate format. I have received many questions on details of the
17deflate format, and I hope that reading this code will answer those questions. 17deflate format, and I hope that reading this code will answer those questions.
18puff.c is heavily commented with details of the deflate format, especially 18puff.c is heavily commented with details of the deflate format, especially
19those little nooks and cranies of the format that might not be obvious from a 19those little nooks and cranies of the format that might not be obvious from a
20specification. 20specification.
@@ -29,10 +29,10 @@ applications, but if you must ...
29 29
30Include puff.h in your code, which provides this prototype: 30Include puff.h in your code, which provides this prototype:
31 31
32int puff(unsigned char *dest, /* pointer to destination pointer */ 32int puff(unsigned char *dest, /* pointer to destination pointer */
33 unsigned long *destlen, /* amount of output space */ 33 unsigned long *destlen, /* amount of output space */
34 unsigned char *source, /* pointer to source data pointer */ 34 unsigned char *source, /* pointer to source data pointer */
35 unsigned long *sourcelen); /* amount of input available */ 35 unsigned long *sourcelen); /* amount of input available */
36 36
37Then you can call puff() to decompress a deflate stream that is in memory in 37Then you can call puff() to decompress a deflate stream that is in memory in
38its entirety at source, to a sufficiently sized block of memory for the 38its entirety at source, to a sufficiently sized block of memory for the
diff --git a/contrib/puff/puff.c b/contrib/puff/puff.c
index b6039dd..a30fb17 100644
--- a/contrib/puff/puff.c
+++ b/contrib/puff/puff.c
@@ -805,7 +805,7 @@ local unsigned char *yank(char *name, unsigned long *len)
805 buf = NULL; 805 buf = NULL;
806 } 806 }
807 fclose(in); 807 fclose(in);
808 *len = size; 808 *len = size;
809 return buf; 809 return buf;
810} 810}
811 811
diff --git a/contrib/puff/puff.h b/contrib/puff/puff.h
index 41ea7e1..ef61252 100644
--- a/contrib/puff/puff.h
+++ b/contrib/puff/puff.h
@@ -18,7 +18,7 @@
18 misrepresented as being the original software. 18 misrepresented as being the original software.
19 3. This notice may not be removed or altered from any source distribution. 19 3. This notice may not be removed or altered from any source distribution.
20 20
21 Mark Adler madler@alumni.caltech.edu 21 Mark Adler madler@alumni.caltech.edu
22 */ 22 */
23 23
24 24