home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dbmalloc.zip / abort.c < prev    next >
C/C++ Source or Header  |  1993-01-04  |  1KB  |  44 lines

  1. /*
  2.  * (c) Copyright 1990, 1991, 1992 Conor P. Cahill (cpcahil@virtech.vti.com)
  3.  *
  4.  * This software may be distributed freely as long as the following conditions
  5.  * are met:
  6.  *         * the distribution, or any derivative thereof, may not be
  7.  *          included as part of a commercial product
  8.  *        * full source code is provided including this copyright
  9.  *        * there is no charge for the software itself (there may be
  10.  *          a minimal charge for the copying or distribution effort)
  11.  *        * this copyright notice is not modified or removed from any
  12.  *          source file
  13.  */
  14. #include <stdio.h>
  15. #include "mallocin.h"
  16. #include "debug.h"
  17.  
  18. /*
  19.  * Function:    malloc_abort()
  20.  *
  21.  * Purpose:    abort routine which cause a core dump.  This routine is 
  22.  *        put here so that the user can override it with thier own
  23.  *        abort routine. 
  24.  *
  25.  * Arguments:    none
  26.  *
  27.  * Returns:    nothing of any value
  28.  *
  29.  * Narrative:
  30.  *        call abort routine to cause core dump
  31.  */
  32. #ifndef lint
  33. static
  34. char rcs_hdr[] = "$Id: abort.c,v 1.2 1992/08/22 16:27:13 cpcahil Exp $";
  35. #endif
  36.  
  37. VOIDTYPE
  38. malloc_abort()
  39. {
  40.  
  41.     VOIDCAST abort();
  42.  
  43. } /* malloc_abort(... */
  44.