"Computationally, strcmp is, and always has been, the wrong way to do this. What if I decide to throw some leading zeroes into an octet, i.e. 010 instead of 10?"
If you use Vixie BIND (which is what 99% of the planet uses) then it decides you're using octal and what you think is 10 is now 8
And if you complain, all the cheerleaders will come out of the woodwork and tell you that's how it's supposed to work.
And if you point out that the RFC says that all octets are always decimal, and the software is supposed to be RFC compliant, so either the software or the RFC needs changing, they'll mailbomb you.
Excuse me for being bitter, but that's what happened when I threw a leading zero into my octet.