19573673dSchristos /* puff.h 2*8cbf5cb7Schristos Copyright (C) 2002-2013 Mark Adler, all rights reserved 3*8cbf5cb7Schristos version 2.3, 21 Jan 2013 49573673dSchristos 59573673dSchristos This software is provided 'as-is', without any express or implied 69573673dSchristos warranty. In no event will the author be held liable for any damages 79573673dSchristos arising from the use of this software. 89573673dSchristos 99573673dSchristos Permission is granted to anyone to use this software for any purpose, 109573673dSchristos including commercial applications, and to alter it and redistribute it 119573673dSchristos freely, subject to the following restrictions: 129573673dSchristos 139573673dSchristos 1. The origin of this software must not be misrepresented; you must not 149573673dSchristos claim that you wrote the original software. If you use this software 159573673dSchristos in a product, an acknowledgment in the product documentation would be 169573673dSchristos appreciated but is not required. 179573673dSchristos 2. Altered source versions must be plainly marked as such, and must not be 189573673dSchristos misrepresented as being the original software. 199573673dSchristos 3. This notice may not be removed or altered from any source distribution. 209573673dSchristos 219573673dSchristos Mark Adler madler@alumni.caltech.edu 229573673dSchristos */ 239573673dSchristos 249573673dSchristos 259573673dSchristos /* 269573673dSchristos * See puff.c for purpose and usage. 279573673dSchristos */ 289573673dSchristos #ifndef NIL 299573673dSchristos # define NIL ((unsigned char *)0) /* for no output option */ 309573673dSchristos #endif 319573673dSchristos 329573673dSchristos int puff(unsigned char *dest, /* pointer to destination pointer */ 339573673dSchristos unsigned long *destlen, /* amount of output space */ 349573673dSchristos const unsigned char *source, /* pointer to source data pointer */ 359573673dSchristos unsigned long *sourcelen); /* amount of input available */ 36