Comparing two *floating point* numbers is indeed non-trivial.  However, I asked about an **integer**-equality test, which really is trivial, no excuses allowed [0].  We have a strcmp() for string equality (so it should be called string_equal(), so as to avoid confusion with C's function, whose return is *false* if its two parameters are equal), after all, why not an int one ?

[0] Any attempted excuses shall be met with either some variant on Peano's axioms or a rendition of
http://www.chaos.org.uk/~eddy/maths/found/natural.xhtml
and several supporting pages.