diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:37 -0700 |
|---|---|---|
| committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:37 -0700 |
| commit | 4b5a43a219d51066c01ff2ab86af18b967f2d0dd (patch) | |
| tree | 4dcaf0cd18751d04cf638a9a6ec521990d4f2e90 /contrib/puff | |
| parent | 086e982175da84b3db958191031380794315f95f (diff) | |
| download | zlib-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/README | 10 | ||||
| -rw-r--r-- | contrib/puff/puff.c | 2 | ||||
| -rw-r--r-- | contrib/puff/puff.h | 2 |
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 -- | |||
| 14 | puff.c was written to document the deflate format unambiguously, by virtue of | 14 | puff.c was written to document the deflate format unambiguously, by virtue of |
| 15 | being working C code. It is meant to supplement RFC 1951, which formally | 15 | being working C code. It is meant to supplement RFC 1951, which formally |
| 16 | describes the deflate format. I have received many questions on details of the | 16 | describes the deflate format. I have received many questions on details of the |
| 17 | deflate format, and I hope that reading this code will answer those questions. | 17 | deflate format, and I hope that reading this code will answer those questions. |
| 18 | puff.c is heavily commented with details of the deflate format, especially | 18 | puff.c is heavily commented with details of the deflate format, especially |
| 19 | those little nooks and cranies of the format that might not be obvious from a | 19 | those little nooks and cranies of the format that might not be obvious from a |
| 20 | specification. | 20 | specification. |
| @@ -29,10 +29,10 @@ applications, but if you must ... | |||
| 29 | 29 | ||
| 30 | Include puff.h in your code, which provides this prototype: | 30 | Include puff.h in your code, which provides this prototype: |
| 31 | 31 | ||
| 32 | int puff(unsigned char *dest, /* pointer to destination pointer */ | 32 | int 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 | ||
| 37 | Then you can call puff() to decompress a deflate stream that is in memory in | 37 | Then you can call puff() to decompress a deflate stream that is in memory in |
| 38 | its entirety at source, to a sufficiently sized block of memory for the | 38 | its 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 | ||
