Download | Plain Text | No Line Numbers


  1. /*
  2.  * Name: error
  3.  * Author: Manuel Mausz, 0728348
  4.  * Description: Shared definitions and functions
  5.  * Created: 24.05.2009
  6.  */
  7.  
  8. #ifndef _ERROR_H
  9. #define _ERROR_H 1
  10.  
  11. /*
  12.  * error.c stuff
  13.  */
  14. #include <stdarg.h>
  15.  
  16. /* function declarations */
  17. void vprintferr(int perrno, const char *fmt, va_list ap);
  18. void printferr(int perrno, const char *fmt, ...);
  19. void bailout(int perrno, const char *fmt, ...);
  20.  
  21. /* global variable definitions */
  22. extern int error; /* error flag */
  23. extern char *me; /* name of myself (argv[0]) */
  24. extern int child; /* flag being the child */
  25.  
  26. #endif
  27.