ack/lang/fortran/lib/libF77/s_stop.c
1991-10-07 16:59:33 +00:00

20 lines
238 B
C

#include "stdio.h"
#include "f2c.h"
VOID s_stop(s, n)
char *s;
long int n;
{
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);
}