Well to compare two things, you need to use the comparison operator ==, not the assignment operator =.
However, you're unlikely to be able to use a simple comparison because you're either going to be using an array or a struct, so memcmp may be the way ahead.