Skip to content Accesskey=4Skip to sub-navigation Accesskey=3View our Accessibility Options MIT Information Systems Home About IS&T Contact IS&T Site Map Search Advanced Search
Getting StartedGetting Services by Topic or Alphabetically Getting Help

On This Page

[Help]

  

Quick Links

Top Level

Related Links

Ask OLC a question

Athena Consulting Homepage

Helpdesk Stock Answers (for Mac/PC questions)


Why MALLOC.H is missing

On the athena workstations, the malloc.h header file only exists on
DECstation and RS/6000 workstations.  To get malloc defined on other
platforms, just put the following paragaph in your own header file:

#if defined(_AIX) || defined(ultrix)
#include <stdlib.h>
#else
#ifdef __STDC__
extern void *malloc(unsigned int), realloc (void *, unsigned int);
extern void free(void *);
#else
extern char *malloc(), realloc();
#endif
#endif

Then remove references to malloc.h from your source code.

MIT Home | Getting Started | Getting Services | Getting Help | About IS&T | Accessibility
Ask a technology question or send a comment about this web page.