4.3BSD/usr/contrib/dsh/src/error.c

Compare this file to the similar file:
Show the results in this format:

#include <stdio.h>
int	errno;

warn (str)
char	*str;
{
    fprintf (stderr, "%s [errno = %d]\n", str, errno);
}

error (str)
char	*str;
{
    warn (str);
    exit (-1);
}