* Copyright (c) 1990 The Regents of the University of California.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)hexsyntax.c 5.2 (Berkeley) %G%";
off_t skip
; /* bytes to skip */
extern enum _vflag vflag
;
extern int length
, optind
;
while ((ch
= getopt(argc
, argv
, "bcde:f:n:os:vx")) != EOF
)
add("\"%07.7_ax \" 16/1 \"%03o \" \"\\n\"");
add("\"%07.7_ax \" 16/1 \"%3_c \" \"\\n\"");
add("\"%07.7_ax \" 8/2 \" %05u \" \"\\n\"");
if ((length
= atoi(optarg
)) < 0) {
"hexdump: bad length value.\n");
add("\"%07.7_ax \" 8/2 \" %06o \" \"\\n\"");
if ((skip
= strtol(optarg
, &p
, 0)) < 0) {
"hexdump: bad skip value.\n");
add("\"%07.7_ax \" 8/2 \" %04x \" \"\\n\"");
add("\"%07.7_ax \" 8/2 \"%04x \" \"\\n\"");
"hexdump: [-bcdovx] [-e fmt] [-f fmt_file] [-n length] [-s skip] [file ...]\n");