[REWRITE] hexdump.c rewritten to use getopt32

Mats Erik Andersson mats.andersson64 at comhem.se
Tue Apr 3 18:43:32 UTC 2007


Fellow code workers,

let me post a recoding of hexdump.c that now uses
the functionality of getopt32. Since the difference
file is slightly larger than the rewritten code,
I post the full source.

Using bloat-o-meter, a decrease of 47 bytes is calculated.
However, due to the inherent construction of getopt32,
which scrambles any order of option flags, this version
of hexdump will only allow one hard coded ordering for
output: at present -b -c -d -o -x, one row after the other.
Is this really a serious shortcoming? For the moment I
offer the code as a starting point for further discussion.

Mats E Andersson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hexdump.c
Type: text/x-csrc
Size: 2816 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070403/83dace4b/attachment-0002.c 


More information about the busybox mailing list