Main Page | Data Structures | Directories | File List | Data Fields

src/safe.h

00001 /********************************************************************\
00002  * This program is free software; you can redistribute it and/or    *
00003  * modify it under the terms of the GNU General Public License as   *
00004  * published by the Free Software Foundation; either version 2 of   *
00005  * the License, or (at your option) any later version.              *
00006  *                                                                  *
00007  * This program is distributed in the hope that it will be useful,  *
00008  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00009  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00010  * GNU General Public License for more details.                     *
00011  *                                                                  *
00012  * You should have received a copy of the GNU General Public License*
00013  * along with this program; if not, contact:                        *
00014  *                                                                  *
00015  * Free Software Foundation           Voice:  +1-617-542-5942       *
00016  * 59 Temple Place - Suite 330        Fax:    +1-617-542-2652       *
00017  * Boston, MA  02111-1307,  USA       gnu@gnu.org                   *
00018  *                                                                  *
00019 \********************************************************************/
00020 
00021 /* $Header: /cvsroot/wifidog/wifidog/src/safe.h,v 1.1 2005/02/20 21:29:15 minaguib Exp $ */
00027 #ifndef _SAFE_H_
00028 #define _SAFE_H_
00029 
00030 #include <stdarg.h> /* For va_list */
00031 
00034 void * safe_malloc (size_t size);
00035 
00036 /* @brief Safe version of strdup
00037  */
00038 char * safe_strdup(const char *s);
00039 
00040 /* @brief Safe version of asprintf
00041  */
00042 int safe_asprintf(char **strp, const char *fmt, ...);
00043 
00044 /* @brief Safe version of vasprintf
00045  */
00046 int safe_vasprintf(char **strp, const char *fmt, va_list ap);
00047 
00048 #endif /* _SAFE_H_ */
00049 

Generated on Sun Apr 3 20:04:46 2005 for WifiDog by  doxygen 1.4.1