"Fossies" - the Fresh Open Source Software Archive
Member "which-2.21/tilde/xmalloc.h" (11 Mar 2008, 1341 Bytes) of package /linux/privat/which-2.21.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard
) with prefixed line numbers and code folding
Alternatively you can here view
the uninterpreted source code file.
For more information about "xmalloc.h" see the Fossies "Dox" file reference
1 /* xmalloc.h -- memory allocation that aborts on errors. */
3 /* Copyright (C) 1999 Free Software Foundation, Inc.
5 This file is part of the GNU Readline Library, a library for
6 reading lines of text with interactive input and history editing.
8 The GNU Readline Library is free software; you can redistribute it
9 and/or modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2, or
11 (at your option) any later version.
13 The GNU Readline Library is distributed in the hope that it will be
14 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
15 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 The GNU General Public License is often shipped with GNU software, and
19 is generally kept in a file called COPYING or LICENSE. If you do not
20 have a copy of the license, write to the Free Software Foundation,
21 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
23 #if !defined (_XMALLOC_H_)
24 #define _XMALLOC_H_
26 #ifndef PTR_T
28 #ifdef __STDC__
29 # define PTR_T void *
31 # define PTR_T char *
34 #endif /* !PTR_T */
36 extern PTR_T xmalloc PARAMS((size_t));
37 extern PTR_T xrealloc PARAMS((void *, size_t));
38 extern void xfree PARAMS((void *));
40 #endif /* _XMALLOC_H_ */