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