Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

s_stop.c File Reference

#include "stdlib.h"
#include "stdio.h"
#include "f2c.h"

Go to the source code of this file.


Functions

void f_exit (void)
int s_stop (char *s, ftnlen n)

Function Documentation

void f_exit void   
 

Definition at line 71 of file close.c.

00073 {       int i;
00074         static cllist xx;
00075         if (!xx.cerr) {
00076                 xx.cerr=1;
00077                 xx.csta=NULL;
00078                 for(i=0;i<MXUNIT;i++)
00079                 {
00080                         xx.cunit=i;
00081                         (void) f_clos(&xx);
00082                 }
00083         }
00084 }

int s_stop char *    s,
ftnlen    n
 

Definition at line 18 of file s_stop.c.

References f_exit(), and i.

Referenced by ff_().

00020 {
00021 int i;
00022 
00023 if(n > 0)
00024         {
00025         fprintf(stderr, "STOP ");
00026         for(i = 0; i<n ; ++i)
00027                 putc(*s++, stderr);
00028         fprintf(stderr, " statement executed\n");
00029         }
00030 #ifdef NO_ONEXIT
00031 f_exit();
00032 #endif
00033 exit(0);
00034 #ifdef __cplusplus
00035 return 0; /* NOT REACHED */
00036 }
00037 #endif
00038 }
 

Powered by Plone

This site conforms to the following standards: