/*
	errno.c
	Print system error message corresponding to error number

	Rob Funk 8-Sep-1996
*/

#include <stdio.h>
#include <errno.h>

int main(int argc, char *argv[])
{
	if (argc>1 && isdigit(*argv[1])) {
		errno = atoi(argv[1]);
		perror(argv[1]);
		exit(0);
	} else {
		fprintf(stderr, "usage:  %s num\n", argv[0]);
		fprintf(stderr, "        (where num is a system error number)\n");
		exit(1);
	}

	exit(0);
}

