blob: 3281a3b6bfaff7418f192868271765958c672872 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* mymalloc.c */
#include <stdio.h>
#ifndef AIX
# include <stdlib.h>
#endif
#include "defines.h"
#include "myerror.h"
#include "mymalloc.h"
#ifdef __STDC__
char * my_malloc (unsigned int len)
#else
char * my_malloc (unsigned len)
int len;
#endif
{
char * p;
p = (char *) malloc (len);
if (p == NULL) error ("! out of memory");
return (p);
}
|