home *** CD-ROM | disk | FTP | other *** search
- #include "stdio.h"
- #include "f2c.h"
-
- #ifdef KR_headers
- extern void f_exit();
- VOID s_stop(s, n) char *s; ftnlen n;
- #else
- #undef abs
- #include "stdlib.h"
- #ifdef __cplusplus
- extern "C" void f_exit(void);
- #else
- extern void f_exit(void);
- #endif
- void s_stop(char *s, ftnlen n)
- #endif
- {
- int i;
-
- if(n > 0)
- {
- fprintf(stderr, "STOP ");
- for(i = 0; i<n ; ++i)
- putc(*s++, stderr);
- fprintf(stderr, " statement executed\n");
- }
- f_exit();
- exit(0);
- }
-