The library has undefined behavior in some cases, due to applying the unary negation operator indiscriminately. For example, when we print:
sprintf_(buffer, "%d", INT_MIN);
we internally have an int value variable with value INT_MIN, and then we take -value (or 0 - value). That's undefined! Not good.
The library has undefined behavior in some cases, due to applying the unary negation operator indiscriminately. For example, when we print:
we internally have an
int valuevariable with valueINT_MIN, and then we take-value(or0 - value). That's undefined! Not good.