summaryrefslogtreecommitdiff
path: root/src/truncate.c
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2008-06-11 09:14:26 -0600
committerJim Meyering <meyering@redhat.com>2008-06-13 23:06:03 +0200
commit46a811b9e7c0e9fefb75864d198f9a4f3fd0e6cf (patch)
tree8f3007517c9197342afa85dde87e9638d7d84ad7 /src/truncate.c
parentbbbc35c9ed194b0d458f2a2827dfbceb9056ef7d (diff)
downloadcoreutils-46a811b9e7c0e9fefb75864d198f9a4f3fd0e6cf.tar.xz
od: align multiple -t specs
* src/od.c (struct tspec): Add pad_width field, and adjust print_function prototype. (decode_one_format): Rewrite all fmt_string values to account for pad width. (FMT_BYTES_ALLOCATED): Adjust to new format style. (main): Compute pad width per spec. (write_block): Account for pad width. (dump): Don't print padding-only fields. (PRINT_TYPE, print_named_ascii, print_ascii): All print functions adjusted to use variable pad width. * tests/Makefile.am (TESTS): Add test. * tests/misc/od-multiple-t: New file. * THANKS: Update. * NEWS: Mention the improvement. Reported by Gary Johnson.
Diffstat (limited to 'src/truncate.c')
0 files changed, 0 insertions, 0 deletions