home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Guide / c-cplusplus-interactive-guide.iso / c_ref / csource3 / 187_01 / error.c < prev    next >
Encoding:
C/C++ Source or Header  |  1985-12-30  |  735 b   |  23 lines

  1. /*@*****************************************************/
  2. /*@                                                    */
  3. /*@ error - output two strings and exit abnormally.    */
  4. /*@        Any CR/LFs must be in the strings.          */
  5. /*@        error() exits with ERRORLEVEL = 1.          */
  6. /*@                                                    */
  7. /*@   Usage:     error(s1, s2);                        */
  8. /*@       where s1 and s2 are strings to be displayed  */
  9. /*@         on STDOUT.                                 */
  10. /*@                                                    */
  11. /*@*****************************************************/
  12.  
  13.  
  14. error(s1, s2)
  15. char *s1, *s2;
  16. {
  17.    puts(s1);
  18.    puts(s2);
  19.    exit(1);
  20. }
  21.  
  22.  
  23.