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__))
|
|
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);
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 |
|
) |
|
|