P
paul.anderson
I need to compare about 25k bytes of data. I'd like to be able to do a
simple comparison of memory between 2 structures containing intrinsic
data and find the position where the first difference occurs. Is there
an easy way to do this? I'd like to use a call like memcmp but that
only provides <, > or = responses. I thought maybe there was some sort
of "memdiff" call that would give me the position where the 2
structures are different. Needless to say, I don't want to write
overloaded operator== methods that will handle the comparisons - my 25k
of data is a series of structs of structs that will be a pain to write
a method for every one.
Thanks for any insight!
simple comparison of memory between 2 structures containing intrinsic
data and find the position where the first difference occurs. Is there
an easy way to do this? I'd like to use a call like memcmp but that
only provides <, > or = responses. I thought maybe there was some sort
of "memdiff" call that would give me the position where the 2
structures are different. Needless to say, I don't want to write
overloaded operator== methods that will handle the comparisons - my 25k
of data is a series of structs of structs that will be a pain to write
a method for every one.
Thanks for any insight!