home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / OBJASM.ZIP / OUMALLOC.C < prev    next >
C/C++ Source or Header  |  1990-02-25  |  324b  |  18 lines

  1. #include <stdio.h>
  2. #include <malloc.h>
  3. #include <stdlib.h>
  4. #include "o.h"
  5.  
  6. char *o_malloc( size )
  7.     unsigned int    size;
  8. {
  9.     char    *result;
  10.  
  11.     result = (char *)calloc( 1, size );
  12.     if( result == NULL ) {
  13.         fprintf(stderr, "Out of memory\n" );
  14.         exit(4);
  15.     }
  16.     return( result );
  17. }
  18.