How do you compare structs for equality in C?

C provides no language facilities to do this – you have to do it yourself and compare each structure member by member.

Leave a Comment