Mercurial > hg > sv-dependency-builds
annotate src/zlib-1.2.8/contrib/puff/puff.h @ 128:5b4145a0d408
Current zlib source
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 18 Oct 2016 14:33:52 +0100 |
parents | |
children |
rev | line source |
---|---|
cannam@128 | 1 /* puff.h |
cannam@128 | 2 Copyright (C) 2002-2013 Mark Adler, all rights reserved |
cannam@128 | 3 version 2.3, 21 Jan 2013 |
cannam@128 | 4 |
cannam@128 | 5 This software is provided 'as-is', without any express or implied |
cannam@128 | 6 warranty. In no event will the author be held liable for any damages |
cannam@128 | 7 arising from the use of this software. |
cannam@128 | 8 |
cannam@128 | 9 Permission is granted to anyone to use this software for any purpose, |
cannam@128 | 10 including commercial applications, and to alter it and redistribute it |
cannam@128 | 11 freely, subject to the following restrictions: |
cannam@128 | 12 |
cannam@128 | 13 1. The origin of this software must not be misrepresented; you must not |
cannam@128 | 14 claim that you wrote the original software. If you use this software |
cannam@128 | 15 in a product, an acknowledgment in the product documentation would be |
cannam@128 | 16 appreciated but is not required. |
cannam@128 | 17 2. Altered source versions must be plainly marked as such, and must not be |
cannam@128 | 18 misrepresented as being the original software. |
cannam@128 | 19 3. This notice may not be removed or altered from any source distribution. |
cannam@128 | 20 |
cannam@128 | 21 Mark Adler madler@alumni.caltech.edu |
cannam@128 | 22 */ |
cannam@128 | 23 |
cannam@128 | 24 |
cannam@128 | 25 /* |
cannam@128 | 26 * See puff.c for purpose and usage. |
cannam@128 | 27 */ |
cannam@128 | 28 #ifndef NIL |
cannam@128 | 29 # define NIL ((unsigned char *)0) /* for no output option */ |
cannam@128 | 30 #endif |
cannam@128 | 31 |
cannam@128 | 32 int puff(unsigned char *dest, /* pointer to destination pointer */ |
cannam@128 | 33 unsigned long *destlen, /* amount of output space */ |
cannam@128 | 34 const unsigned char *source, /* pointer to source data pointer */ |
cannam@128 | 35 unsigned long *sourcelen); /* amount of input available */ |