Updating ChangeLog for 4.22.10
[centerim.git] / firetalk / safestring.h
blobc54de24d01e7b637819edf77759bbd5b059a874a
1 /*
2 safestring.h - FireTalk generic AIM declarations
3 Copyright (C) 2000 Ian Gulliver
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of version 2 of the GNU General Public License as
7 published by the Free Software Foundation.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 #ifndef _SAFESTRING_H
19 #define _SAFESTRING_H
21 #include <stdlib.h>
23 void *safe_malloc(const size_t size);
24 void *safe_realloc(void *old, const size_t new);
25 char *safe_strdup(const char * const input);
26 void safe_strncpy(char * const to, const char * const from, const size_t size);
27 void safe_strncat(char * const to, const char * const from, const size_t size);
28 void safe_snprintf(char *out, const size_t size, char * const format, ...);
29 int safe_strncasecmp(const char *s1, const char *s2, size_t n);
31 #endif