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

  1. /*-----------------------------------------------------------------------*
  2.  * filename - errormsg.c
  3.  *
  4.  * function(s)
  5.  *        __ErrorMessage - display an error message
  6.  *-----------------------------------------------------------------------*/
  7.  
  8. /*
  9.  *      C/C++ Run Time Library - Version 5.0
  10.  *
  11.  *      Copyright (c) 1991, 1992 by Borland International
  12.  *      All Rights Reserved.
  13.  *
  14.  */
  15.  
  16.  
  17. #ifdef _Windows
  18. #include <_win.h>
  19. #else
  20. #include <io.h>
  21. #include <string.h>
  22. #endif
  23.  
  24. void __ErrorMessage(const char *msg)
  25. {
  26. #ifdef _Windows
  27.     _errorBox((char *) msg);
  28. #else
  29.     _write(2, msg, strlen(msg));
  30. #endif
  31. }
  32.