kstars
libfli-mem.h
Go to the documentation of this file.00001 /* 00002 00003 Copyright (c) 2002 Finger Lakes Instrumentation (FLI), L.L.C. 00004 All rights reserved. 00005 00006 Redistribution and use in source and binary forms, with or without 00007 modification, are permitted provided that the following conditions 00008 are met: 00009 00010 Redistributions of source code must retain the above copyright 00011 notice, this list of conditions and the following disclaimer. 00012 00013 Redistributions in binary form must reproduce the above 00014 copyright notice, this list of conditions and the following 00015 disclaimer in the documentation and/or other materials 00016 provided with the distribution. 00017 00018 Neither the name of Finger Lakes Instrumentation (FLI), LLC 00019 nor the names of its contributors may be used to endorse or 00020 promote products derived from this software without specific 00021 prior written permission. 00022 00023 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00024 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00025 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 00026 FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 00027 REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 00028 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 00029 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00030 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00031 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00032 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 00033 ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00034 POSSIBILITY OF SUCH DAMAGE. 00035 00036 ====================================================================== 00037 00038 Finger Lakes Instrumentation, L.L.C. (FLI) 00039 web: http://www.fli-cam.com 00040 email: support@fli-cam.com 00041 00042 */ 00043 00044 #ifndef _LIBFLI_MEM_H_ 00045 #define _LIBFLI_MEM_H_ 00046 00047 void *xmalloc(size_t size); 00048 void *xcalloc(size_t nmemb, size_t size); 00049 void xfree(void *ptr); 00050 void *xrealloc(void *ptr, size_t size); 00051 int xfree_all(void); 00052 char *xstrdup(const char *s); 00053 00054 #endif /* _LIBFLI_MEM_H_ */