/***************************************************************************
 *                                                                         *
 *   ALCMEM.C                                                              *
 *                                                                         *
 *   Copyright (C) 1987-1997 Galacticomm, Inc.    All Rights Reserved.     *
 *                                                                         *
 *   This is the GCOMM.LIB routine for allocating memory and returning     *
 *   to the caller only if the memory is available.                        *
 *                                                                         *
 *                                            - T. Stryker 2/3/92          *
 *                                                                         *
 ***************************************************************************/

#define FILREV "$Revision: 4 $"

#include "gcomm.h"

VOID *                             /*   returns ptr to newly allocated mem */
alcmem(                            /* allocate dynamic memory              */
UINT size)                         /*   requested memory size              */
{
     VOID *retval;

     if ((retval=(VOID *)malloc(size)) == NULL) {
          memcata();
     }
     return(retval);
}
