home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 1.ddi / CLIBSRC.ZIP / ASSERT.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  617 b   |  27 lines

  1. /*------------------------------------------------------------------------
  2.  * filename - assert.c
  3.  *
  4.  * function(s)
  5.  *        __assertfail - prints error message and aborts
  6.  *-----------------------------------------------------------------------*/
  7.  
  8. /*
  9.  *      C/C++ Run Time Library - Version 5.0
  10.  *
  11.  *      Copyright (c) 1987, 1992 by Borland International
  12.  *      All Rights Reserved.
  13.  *
  14.  */
  15.  
  16.  
  17. #include <stdio.h>
  18. #include <stdlib.h>
  19. #include <assert.h>
  20.  
  21. void _FARFUNC __assertfail(char *msg, char *cond, char *file, int line)
  22. {
  23.     fprintf(stderr, msg, cond, file, line);
  24.     abort();
  25. }
  26.  
  27.