]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hexdump: use strtosize() for -n and -s
authorKarel Zak <kzak@redhat.com>
Wed, 21 Mar 2012 18:35:22 +0000 (19:35 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 21 Mar 2012 18:35:22 +0000 (19:35 +0100)
commit807e40c6557ecf52a668b08df0f528bbcdcb33d4
tree31aff60fadfcbb19b5cd56ea97c99d269ddbf396
parent05a9d5120c10ffc21f21db09eec685a7258b2fb4
hexdump: use strtosize() for -n and -s

strtosize() is based on uintmax_t and supports all possible suffixes
(B,M,G,T ...)

Reported-by: Simon de Vlieger <simon@ikanobori.jp>
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/hexdump.c
text-utils/hexdump.h
text-utils/hexsyntax.c