xmalloc.h revision 92555
176195Sbrian/* $OpenBSD: xmalloc.h,v 1.8 2002/03/04 17:27:39 stevesk Exp $ */ 276195Sbrian 376358Sbrian/* 476358Sbrian * Author: Tatu Ylonen <ylo@cs.hut.fi> 576358Sbrian * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 676195Sbrian * All rights reserved 776195Sbrian * Created: Mon Mar 20 22:09:17 1995 ylo 876195Sbrian * 976195Sbrian * Versions of malloc and friends that check their results, and never return 1076195Sbrian * failure (they call fatal if they encounter an error). 1176195Sbrian * 1276195Sbrian * As far as I am concerned, the code I have written for this software 1376195Sbrian * can be used freely for any purpose. Any derived versions of this 1476195Sbrian * software must be clearly marked as such, and if the derived work is 1576195Sbrian * incompatible with the protocol description in the RFC file, it must be 1676195Sbrian * called by a name other than "ssh" or "Secure Shell". 1776195Sbrian */ 1876195Sbrian 1976195Sbrian#ifndef XMALLOC_H 2076195Sbrian#define XMALLOC_H 2176195Sbrian 2276195Sbrianvoid *xmalloc(size_t); 2376195Sbrianvoid *xrealloc(void *, size_t); 2476195Sbrianvoid xfree(void *); 2576195Sbrianchar *xstrdup(const char *); 2676195Sbrian 2776195Sbrian#endif /* XMALLOC_H */ 2876195Sbrian