home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1999 May / pcp151c.iso / misc / src / install / modutils / include / util.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-06  |  1.2 KB  |  39 lines

  1. /* Miscelaneous utility functions.
  2.    Copyright 1996, 1997 Linux International.
  3.  
  4.    Contributed by Richard Henderson <rth@tamu.edu>
  5.  
  6.    This file is part of the Linux modutils.
  7.  
  8.    This program is free software; you can redistribute it and/or modify it
  9.    under the terms of the GNU General Public License as published by the
  10.    Free Software Foundation; either version 2 of the License, or (at your
  11.    option) any later version.
  12.  
  13.    This program is distributed in the hope that it will be useful, but
  14.    WITHOUT ANY WARRANTY; without even the implied warranty of
  15.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.    General Public License for more details.
  17.  
  18.    You should have received a copy of the GNU General Public License
  19.    along with this program; if not, write to the Free Software Foundation,
  20.    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  21.  
  22.  
  23. #ifndef MODUTILS_UTIL_H
  24. #define MODUTILS_UTIL_H 1
  25.  
  26. #ident "$Id: util.h,v 1.1.1.1 1998/01/06 20:51:07 ewt Exp $"
  27.  
  28. void error(const char *, ...)
  29. #ifdef __GNUC__
  30.   __attribute__((format(printf, 1, 2)))
  31. #endif
  32.   ;
  33.  
  34. void *xmalloc(size_t);
  35. void *xrealloc(void *, size_t);
  36. char *xstrdup(const char *);
  37.  
  38. #endif /* util.h */
  39.