leafnode  1.12.0
About: Leafnode is a store & forward NNTP proxy for small (dialup) sites.
  Fossies Dox: leafnode-1.12.0.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

critmem.h
Go to the documentation of this file.
1/*
2 * critmem.h -- memory allocation that only returns on success
3 *
4 * (C) 2000 - 2002 by Matthias Andree <matthias.andree@gmx.de>
5 *
6 * Backport of critstrdup and SPlint annotations
7 * by courtesy of Ralf Wildenhues <ralf.wildenhues@gmx.de> in 2002.
8 *
9 * ---------------------------------------------------------------------------
10 *
11 * This library is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License as
13 * published by the Free Software Foundation; either version 2 or 2.1 of
14 * the License. See the file COPYING.LGPL for details.
15 *
16 * This library is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
24 * USA
25 */
26
27#ifndef CRITMEM_H
28#define CRITMEM_H
29
30#include <sys/types.h>
31
32/*@only@*//*@out@*//*@notnull@*/
33char *critmalloc(size_t size, const char *message);
34/*@only@*//*@notnull@*/
35char *critrealloc( /*@only@*/ char *a, size_t size, const char *message);
36/*@only@*/
37char *critstrdup(const char *source, const char *message);
38void critsyslog(int);
39
40#endif
void critsyslog(int)
Definition: critmem.c:101
char * critrealloc(char *a, size_t size, const char *message)
Definition: critmem.c:79
char * critstrdup(const char *source, const char *message)
Definition: critmem.c:92
char * critmalloc(size_t size, const char *message)
Definition: critmem.c:61