#include #include #include "errhdl.h" #define SLEN 64 #define MLEN 64 static char *txt[SLEN]; static int sp=0; int ErrCode; char *ErrMessage=NULL; void ErrTxt(char *text, int systemError) { if (systemError) { sp=0; ErrCode=errno; ErrMessage=strerror(errno); } if (sp=256) l=255; strncpy(buf, text[1], l); buf[l]='\0'; ErrWriteGeneral(buf, outrtn, arg); } #endif void ERR_EXIT(char *text) { ErrShow(text); exit(1); }