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  

sig_die.c File Reference

#include "stdlib.h"
#include "stdio.h"
#include "signal.h"

Go to the source code of this file.


Functions

void f_exit (void)
void sig_die (register char *s, int kill)

Function Documentation

void f_exit void   
 

Definition at line 71 of file close.c.

References cllist::cerr, cllist::csta, cllist::cunit, f_clos(), i, and MXUNIT.

Referenced by exit_(), main(), s_1paus(), and s_stop().

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 }

void sig_die register char *    s,
int    kill
 

Definition at line 20 of file sig_die.c.

00022 {
00023         /* print error message, then clear buffers */
00024         if( s != NULL ) fprintf(stderr, "%s\n", s);
00025         exit(1) ;
00026 }
 

Powered by Plone

This site conforms to the following standards: