annotate src/zlib-1.2.7/contrib/puff/puff.h @ 89:8a15ff55d9af

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