Displaying Source Code(s)
|
|
Program to display all the errors in a list
--------------------------------------------------------------------------------
/*
* Program to display all the errors in a list
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <error.h>
#include <string.h>
int main(void)
{
int i;
char *errmsg;
printf("
Error No : Error Message");
for (i = 0; i < 125; i++) {
errmsg = strerror(i);
printf("
%d : %s", i, errmsg);
}
printf("<BR>);
return(0);
}
|
|
|