ack/modules/src/alloc/Malloc.c
carl 0f75cc09ad Better ANSI C compatibility and portability - part 1:
+ Addition of function prototypes.
+ Change function definitions to ANSI C style.
+ Convert to sed scripts some shell scripts for better portability.
+ Reduce usage of em_path.h
2019-02-19 00:54:23 +08:00

26 lines
537 B
C

/* $Id$ */
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* M E M O R Y A L L O C A T I O N R O U T I N E S */
/* The memory allocation routines offered in this file are:
char *Malloc(n) : allocate n bytes
*/
#if __STDC__
#include <stdlib.h>
#else
extern char *malloc();
#endif
#include "alloc.h"
char *Malloc(unsigned int sz)
{
register char *res = malloc(sz);
if (sz && res == 0) No_Mem();
return res;
}