1997-12-05 09:39:46 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
char *cmnd;
|
|
|
|
|
1999-07-09 23:04:43 +02:00
|
|
|
static void usage(void) {
|
1997-12-05 09:39:46 +01:00
|
|
|
fprintf(stderr, "Usage: %s errno ...\n", cmnd);
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
int i;
|
|
|
|
|
|
|
|
cmnd = argv[0];
|
|
|
|
|
1999-07-09 23:04:43 +02:00
|
|
|
if (argc <= 1) {
|
|
|
|
int e;
|
|
|
|
for (e = 0;; e++) {
|
|
|
|
printf("%d\t%s\n", e, strerror(e));
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
for (i = 1; i < argc; i++) {
|
|
|
|
int e = strtoul(argv[i], NULL, 0);
|
|
|
|
|
|
|
|
printf("%d\t%s\n", e, strerror(e));
|
|
|
|
}
|
1997-12-05 09:39:46 +01:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
1999-07-09 23:04:43 +02:00
|
|
|
/*
|
|
|
|
* vim:sw=4
|
|
|
|
*/
|