Hi Simon,
Follow up:
GW>SA> SA>> How would I go about getting a CRC32 from a structure?
GW>SA> SA>> I /think/ I know how to do it with an array, but a structure is a
GW>SA> SA>> bunny of a different colour.
GW>SA> GW> Then turn it into a char array...
GW>SA>So simple?
GW>Yup :-).
GW>You could also do it by casting the struct to a char array...
I forgot to mention that there is just one "gotcha" in this where
structs are concerned. You need to ensure they are packed, and don't use
some default alignment which results in gaps between elements of the
struct.
George
* SLMR 2.1a * All Trademarks acknowledged (just in case ).
--- Maximus/2 3.01
---------------
* Origin: DoNoR/2,Woking UK (44-1483-717905) (2:440/4)
|