|
Is this the official way to push the "inf" into stack?
Since "inf" itself is not official at the C level (it's a part of the IEEE floating-point standard, but that is not guaranteed to be the implementation for "float"), I think the answer would be that it's not, from a pedantic standpoint, but realistically, if your system is advanced enough to support libraries, it's probably going to work.