cannam@89: /* puff.h cannam@89: Copyright (C) 2002-2010 Mark Adler, all rights reserved cannam@89: version 2.2, 25 Apr 2010 cannam@89: cannam@89: This software is provided 'as-is', without any express or implied cannam@89: warranty. In no event will the author be held liable for any damages cannam@89: arising from the use of this software. cannam@89: cannam@89: Permission is granted to anyone to use this software for any purpose, cannam@89: including commercial applications, and to alter it and redistribute it cannam@89: freely, subject to the following restrictions: cannam@89: cannam@89: 1. The origin of this software must not be misrepresented; you must not cannam@89: claim that you wrote the original software. If you use this software cannam@89: in a product, an acknowledgment in the product documentation would be cannam@89: appreciated but is not required. cannam@89: 2. Altered source versions must be plainly marked as such, and must not be cannam@89: misrepresented as being the original software. cannam@89: 3. This notice may not be removed or altered from any source distribution. cannam@89: cannam@89: Mark Adler madler@alumni.caltech.edu cannam@89: */ cannam@89: cannam@89: cannam@89: /* cannam@89: * See puff.c for purpose and usage. cannam@89: */ cannam@89: #ifndef NIL cannam@89: # define NIL ((unsigned char *)0) /* for no output option */ cannam@89: #endif cannam@89: cannam@89: int puff(unsigned char *dest, /* pointer to destination pointer */ cannam@89: unsigned long *destlen, /* amount of output space */ cannam@89: const unsigned char *source, /* pointer to source data pointer */ cannam@89: unsigned long *sourcelen); /* amount of input available */