debug.c File Reference

Routines for error reporting. More...

#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>

Include dependency graph for debug.c:

Go to the source code of this file.

Functions

void error (const char *str,...)
 printf-like function for critical error reporting.
void warning (const char *str,...)
 printf-like function for noncritical error reporting.


Detailed Description

Routines for error reporting.

Definition in file debug.c.


Function Documentation

void error ( const char *  str,
  ... 
)

printf-like function for critical error reporting.

Reports a message to stderr and terminates the program.

Parameters:
str A format string.

Definition at line 40 of file debug.c.

Referenced by swps3_openLib(), swps3_readDMatrix(), swps3_readNextSequence(), swps3_readSBMatrix(), and swps3_translateSequence().

void warning ( const char *  str,
  ... 
)

printf-like function for noncritical error reporting.

Reports a message to stderr without terminating the program.

Parameters:
str A format string.

Definition at line 56 of file debug.c.

Referenced by swps3_readNextSequence().


Generated on Thu Jun 5 12:44:38 2008 for swps3 by  doxygen 1.5.4