xref: /netbsd-src/common/dist/zlib/contrib/puff/puff.h (revision c34236556bea94afcaca1782d7d228301edc3ea0)
1aaf4ece6Schristos /* puff.h
2*c3423655Schristos   Copyright (C) 2002-2013 Mark Adler, all rights reserved
3*c3423655Schristos   version 2.3, 21 Jan 2013
4aaf4ece6Schristos 
5aaf4ece6Schristos   This software is provided 'as-is', without any express or implied
6aaf4ece6Schristos   warranty.  In no event will the author be held liable for any damages
7aaf4ece6Schristos   arising from the use of this software.
8aaf4ece6Schristos 
9aaf4ece6Schristos   Permission is granted to anyone to use this software for any purpose,
10aaf4ece6Schristos   including commercial applications, and to alter it and redistribute it
11aaf4ece6Schristos   freely, subject to the following restrictions:
12aaf4ece6Schristos 
13aaf4ece6Schristos   1. The origin of this software must not be misrepresented; you must not
14aaf4ece6Schristos      claim that you wrote the original software. If you use this software
15aaf4ece6Schristos      in a product, an acknowledgment in the product documentation would be
16aaf4ece6Schristos      appreciated but is not required.
17aaf4ece6Schristos   2. Altered source versions must be plainly marked as such, and must not be
18aaf4ece6Schristos      misrepresented as being the original software.
19aaf4ece6Schristos   3. This notice may not be removed or altered from any source distribution.
20aaf4ece6Schristos 
21aaf4ece6Schristos   Mark Adler    madler@alumni.caltech.edu
22aaf4ece6Schristos  */
23aaf4ece6Schristos 
24aaf4ece6Schristos 
25aaf4ece6Schristos /*
26aaf4ece6Schristos  * See puff.c for purpose and usage.
27aaf4ece6Schristos  */
28*c3423655Schristos #ifndef NIL
29*c3423655Schristos #  define NIL ((unsigned char *)0)      /* for no output option */
30*c3423655Schristos #endif
31*c3423655Schristos 
32aaf4ece6Schristos int puff(unsigned char *dest,           /* pointer to destination pointer */
33aaf4ece6Schristos          unsigned long *destlen,        /* amount of output space */
34*c3423655Schristos          const unsigned char *source,   /* pointer to source data pointer */
35aaf4ece6Schristos          unsigned long *sourcelen);     /* amount of input available */
36