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