diff options
| author | svn2git <svn2git@FreeBSD.org> | 1994-05-01 08:00:00 +0000 |
|---|---|---|
| committer | svn2git <svn2git@FreeBSD.org> | 1994-05-01 08:00:00 +0000 |
| commit | a16f65c7d117419bd266c28a1901ef129a337569 (patch) | |
| tree | 2626602f66dc3551e7a7c7bc9ad763c3bc7ab40a /lib/libF77/s_stop.c | |
| parent | 8503f4f13f77abf7adc8f7e329c6f9c1d52b6a20 (diff) | |
Diffstat (limited to 'lib/libF77/s_stop.c')
| -rw-r--r-- | lib/libF77/s_stop.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/libF77/s_stop.c b/lib/libF77/s_stop.c new file mode 100644 index 0000000000000..7a3b4aa75431d --- /dev/null +++ b/lib/libF77/s_stop.c @@ -0,0 +1,33 @@ +#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" { +#endif +void f_exit(void); + +int 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); +#ifdef __cplusplus +return 0; /* NOT REACHED */ +} +#endif +} |
