]> gcc.gnu.org Git - gcc.git/blame - libf2c/libF77/s_stop.c
configure.target (hpux): Set os_include_dir.
[gcc.git] / libf2c / libF77 / s_stop.c
CommitLineData
81fea2b1
JL
1#include <stdio.h>
2#include "f2c.h"
3
4#ifdef KR_headers
5extern void f_exit();
6VOID s_stop(s, n) char *s; ftnlen n;
7#else
8#undef abs
9#undef min
10#undef max
11#include <stdlib.h>
12#ifdef __cplusplus
13extern "C" {
14#endif
15void f_exit(void);
16
17int s_stop(char *s, ftnlen n)
18#endif
19{
20int i;
21
22if(n > 0)
23 {
24 fprintf(stderr, "STOP ");
25 for(i = 0; i<n ; ++i)
26 putc(*s++, stderr);
27 fprintf(stderr, " statement executed\n");
28 }
29#ifdef NO_ONEXIT
30f_exit();
31#endif
32exit(0);
8e2b8d13
CB
33
34/* We cannot avoid (useless) compiler diagnostics here: */
35/* some compilers complain if there is no return statement, */
36/* and others complain that this one cannot be reached. */
37
81fea2b1
JL
38return 0; /* NOT REACHED */
39}
8e2b8d13 40#ifdef __cplusplus
81fea2b1 41}
8e2b8d13 42#endif
This page took 0.184777 seconds and 5 git commands to generate.