386BSD 0.1 development
[unix-history] / usr / othersrc / contrib / isode / compat / smalloc.c
CommitLineData
48435ab0
WJ
1/* smalloc.c - error checking malloc */
2
3#ifndef lint
4static char *rcsid = "$Header: /f/osi/compat/RCS/smalloc.c,v 7.1 91/02/22 09:15:52 mrose Interim $";
5#endif
6
7/*
8 * $Header: /f/osi/compat/RCS/smalloc.c,v 7.1 91/02/22 09:15:52 mrose Interim $
9 *
10 *
11 * $Log: smalloc.c,v $
12 * Revision 7.1 91/02/22 09:15:52 mrose
13 * Interim 6.8
14 *
15 * Revision 7.0 89/11/23 21:23:33 mrose
16 * Release 6.0
17 *
18 */
19
20/*
21 * NOTICE
22 *
23 * Acquisition, use, and distribution of this module and related
24 * materials are subject to the restrictions of a license agreement.
25 * Consult the Preface in the User's Manual for the full terms of
26 * this agreement.
27 *
28 */
29
30
31/* LINTLIBRARY */
32
33#include <stdio.h>
34#include "general.h"
35#include "manifest.h"
36#include "tailor.h"
37
38/* \f */
39
40char *
41smalloc(size)
42int size;
43{
44 register char *ptr;
45
46 if ((ptr = malloc((unsigned) size)) == NULL){
47 LLOG (compat_log,LLOG_FATAL, ("malloc() failure"));
48 abort ();
49 /* NOTREACHED */
50 }
51
52 return(ptr);
53}