OK, compiler will easily optimize it.
One note: I need comparison char by char or I will need to duplicate code for different endianness.