version 1.10, 2002/02/16 21:27:47 |
version 1.11, 2002/04/08 15:59:05 |
|
|
warnx( |
warnx( |
"hexdump(1) compatibility doesn't support the -%c option%s\n", |
"hexdump(1) compatibility doesn't support the -%c option%s\n", |
ch, ch == 's' ? "; see strings(1)." : "."); |
ch, ch == 's' ? "; see strings(1)." : "."); |
usage(); |
oldusage(); |
} |
} |
|
|
if (!fshead) { |
if (!fshead) { |
|
|
add("2/8 \" %16.14e\" \"\\n\""); |
add("2/8 \" %16.14e\" \"\\n\""); |
} else if (*type_string == 'D') |
} else if (*type_string == 'D') |
/* long doubles vary in size */ |
/* long doubles vary in size */ |
usage(); |
oldusage(); |
else |
else |
add("2/8 \" %16.14e\" \"\\n\""); |
add("2/8 \" %16.14e\" \"\\n\""); |
break; |
break; |
|
|
default: |
default: |
warnx("Bad type-size qualifier '%c'", |
warnx("Bad type-size qualifier '%c'", |
*type_string); |
*type_string); |
usage(); |
oldusage(); |
} |
} |
type_string++; |
type_string++; |
} else if (isdigit(*type_string)) |
} else if (isdigit(*type_string)) |
|
|
default: |
default: |
warnx("%d-byte integer formats are not " |
warnx("%d-byte integer formats are not " |
"supported", nbytes); |
"supported", nbytes); |
usage(); |
oldusage(); |
} |
} |
add(fmt[x][y]); |
add(fmt[x][y]); |
break; |
break; |
default: |
default: |
usage(); |
oldusage(); |
} |
} |
} |
} |
|
} |
|
|
|
void |
|
oldusage() |
|
{ |
|
extern char *__progname; |
|
fprintf(stderr, "usage: %s [-aBbcDdeFfHhIiLlOovXx] [-j skip] " |
|
"[-N length] [-t type_string] " |
|
"[[+]offset[.][Bb]] [file ...]\n", __progname); |
|
exit(1); |
} |
} |
|
|
static void |
static void |