else
/* When precision is specified, don't read VALUE past precision. */
/*strln = strnlen (value, max);*/
- for (strln = 0; strln < max && value[strln]; ++strln);
+ for (strln = 0; strln < max && value[strln]; ++strln)
+ ;
padlen = min - strln;
if (padlen < 0)
padlen = 0;
return result;
}
-static LDOUBLE pow10 (int exp)
+static LDOUBLE pow10_int (int exp)
{
LDOUBLE result = 1;
return result;
}
-static LLONG round (LDOUBLE value)
+static LLONG round_int (LDOUBLE value)
{
LLONG intpart;
max = MAX_DIGITS;
/* Factor of 10 with the needed number of digits, e.g. 1000 for max==3 */
- mask10 = pow10 (max);
+ mask10 = pow10_int (max);
/* We "cheat" by converting the fractional part to integer by
* multiplying by a factor of 10
*/
- fracpart = round (mask10 * (ufvalue - intpart));
+ fracpart = round_int (mask10 * (ufvalue - intpart));
if (fracpart >= mask10)
{