/*********************************************************/
/* Autori: */
/* Pelosi Giovanni, 346787, pelosi */
/* Pesce Agatino, 456868, pesce */
/* */
/* Progetto: Sistemi 2: biblioteca */
/* Data Pr.: 9/2/96 */
/* File: support.c */
/* */
/*********************************************************/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include "support.h"
/*
************************************************************************
*
* stampa messaggio per errore di sistema
*
************************************************************************
*/
void ErrMess(char * Msg)
{
fprintf(stderr, "\nErrno: %d\n", errno);
fprintf(stderr, "\n%s\n", strerror(errno));
fprintf(stderr, "\nErrExit: %s\n", Msg);
}
/*
************************************************************************
*
* stampa messaggio e terminazione per errore di sistema
*
************************************************************************
*/
void ErrExit(char * Msg)
{
ErrMess(Msg);
exit(-1);
}