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  

error.h File Reference

Go to the source code of this file.


Defines

#define IF(EXPR)   if (ifFail(EXPR, __LINE__, __FILE__))

Functions

void error (const char *fmt,...)
void print (const char *fmt,...)
int ifFail (const int expr, const int line, const char *file)
void print_n_size_t (size_t nelems, const size_t *array)

Define Documentation

#define IF EXPR       if (ifFail(EXPR, __LINE__, __FILE__))
 

Definition at line 25 of file error.h.


Function Documentation

void error const char *    fmt,
...   
 

Definition at line 33 of file dumplib.c.

00034 {
00035     va_list args ;
00036 
00037     (void) fprintf(stderr,"%s: ", progname);
00038     va_start(args, fmt) ;
00039     (void) vfprintf(stderr,fmt,args) ;
00040     va_end(args) ;
00041 
00042     (void) fprintf(stderr, "\n") ;
00043     (void) fflush(stderr);      /* to ensure log files are current */
00044     exit(EXIT_FAILURE);
00045 }

int ifFail const int    expr,
const int    line,
const char *    file
 

void print const char *    fmt,
...   
 

void print_n_size_t size_t    nelems,
const size_t *    array
 

 

Powered by Plone

This site conforms to the following standards: