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