blob: 338a2d22dfce565e72ca2d0af35a37e95b19d021 [file] [log] [blame]
Ben Lindstrom05764b92002-03-05 01:53:02 +00001/* $OpenBSD: xmalloc.h,v 1.8 2002/03/04 17:27:39 stevesk Exp $ */
2
Damien Millerd4a8b7e1999-10-27 13:42:43 +10003/*
Damien Miller95def091999-11-25 00:26:21 +11004 * Author: Tatu Ylonen <ylo@cs.hut.fi>
Damien Miller95def091999-11-25 00:26:21 +11005 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
Damien Miller95def091999-11-25 00:26:21 +11007 * Created: Mon Mar 20 22:09:17 1995 ylo
Damien Miller4af51302000-04-16 11:18:38 +10008 *
Damien Miller95def091999-11-25 00:26:21 +11009 * Versions of malloc and friends that check their results, and never return
10 * failure (they call fatal if they encounter an error).
Damien Miller4af51302000-04-16 11:18:38 +100011 *
Damien Millere4340be2000-09-16 13:29:08 +110012 * As far as I am concerned, the code I have written for this software
13 * can be used freely for any purpose. Any derived versions of this
14 * software must be clearly marked as such, and if the derived work is
15 * incompatible with the protocol description in the RFC file, it must be
16 * called by a name other than "ssh" or "Secure Shell".
Damien Miller95def091999-11-25 00:26:21 +110017 */
Damien Millerd4a8b7e1999-10-27 13:42:43 +100018
Damien Millerd4a8b7e1999-10-27 13:42:43 +100019#ifndef XMALLOC_H
20#define XMALLOC_H
21
Ben Lindstrom4cc240d2001-07-04 04:46:56 +000022void *xmalloc(size_t);
23void *xrealloc(void *, size_t);
24void xfree(void *);
25char *xstrdup(const char *);
Damien Millerd4a8b7e1999-10-27 13:42:43 +100026
Damien Miller95def091999-11-25 00:26:21 +110027#endif /* XMALLOC_H */