On 10/5/2010 9:45 AM, Rob van der Heij wrote:
But that would involve comparing two strings, rather than a string
with a character?  I would be pretty annoyed reading a dump and get
portions omitted with "... these 32 byte are all the same, guess what
they are..."

Note that Bill did say "...or thousands" - the standard way is
to take your line width, and do a compare with a multiple of
that width (at a minimum, two lines worth), print the first, and
then the "all the same" message for the rest. If it's likely to
have very long repetitions, CLCL might be a better way to
determine the length, truncated to the appropriate multiple.



Gerhard Postpischil
Bradford, VT

Reply via email to