Good day. I am currently trying to understand a code from this website, but I don't why there is only one "&" in the IF-statement. Can anyone shed some light what it means? Thank you.
some (older? C?) code uses a character or integer as a 'set' of 8, 16, 32 etc boolean values. You just set and check the bit you want. It is not uncommon to have such a thing in a header for a serial stream (think: ethernet message packet) to identify which items from a set of possible items are in the packet rather than burn a full byte for each one.