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