Though perhaps memcmp with fixed size buffers would be better still, no worrying about null terminated strings.