version 1.6, 2001/09/30 07:17:03 |
version 1.7, 2001/11/02 19:41:06 |
|
|
|
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <ctype.h> |
|
#include <stdio.h> |
#include <stdio.h> |
|
#include <ctype.h> |
|
#include <err.h> |
#include "hexdump.h" |
#include "hexdump.h" |
|
|
int deprecated; |
int deprecated; |
|
|
case 'w': |
case 'w': |
case '?': |
case '?': |
default: |
default: |
(void)fprintf(stderr, |
warnx("od(1) has been deprecated for hexdump(1)"); |
"od: od(1) has been deprecated for hexdump(1).\n"); |
|
if (ch != '?') |
if (ch != '?') |
(void)fprintf(stderr, |
warnx("hexdump(1) compatibility doesn't" |
"od: hexdump(1) compatibility doesn't support the -%c option%s\n", |
"support the -%c option%s", |
ch, ch == 's' ? "; see strings(1)." : "."); |
ch, ch == 's' ? "; see strings(1)." : "."); |
usage(); |
usage(); |
} |
} |