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