Pristine Ack-5.5
[Ack-5.5.git] / modules / src / alloc / Malloc.c
1 /* $Id: Malloc.c,v 1.11 1994/06/24 11:06:20 ceriel Exp $ */
2 /*
3  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4  * See the copyright notice in the ACK home directory, in the file "Copyright".
5  */
6 /*      M E M O R Y  A L L O C A T I O N  R O U T I N E S       */
7
8 /*      The memory allocation routines offered in this file are:
9
10         char *Malloc(n)         : allocate n bytes
11 */
12
13 #if __STDC__
14 #include <stdlib.h>
15 #else
16 extern char *malloc();
17 #endif
18 #include        "alloc.h"
19
20 char *
21 Malloc(sz)
22         unsigned int sz;
23 {
24         register char *res = malloc(sz);
25         
26         if (sz && res == 0) No_Mem();
27         return res;
28 }