uval = cgiGetVariable("PageSize.Units");
if (!val || !lval || !uval ||
- (width = strtod(val, NULL)) == 0.0 ||
- (length = strtod(lval, NULL)) == 0.0 ||
+ (width = atof(val)) == 0.0 ||
+ (length = atof(lval)) == 0.0 ||
(strcmp(uval, "pt") && strcmp(uval, "in") && strcmp(uval, "ft") &&
strcmp(uval, "cm") && strcmp(uval, "mm") && strcmp(uval, "m")))
return (NULL);
case PPD_CUSTOM_CURVE :
case PPD_CUSTOM_INVCURVE :
case PPD_CUSTOM_REAL :
- if ((number = strtod(val, NULL)) == 0.0 ||
+ if ((number = atof(val)) == 0.0 ||
number < cparam->minimum.custom_real ||
number > cparam->maximum.custom_real)
return (NULL);
case PPD_CUSTOM_POINTS :
snprintf(keyword, sizeof(keyword), "%s.Units", coption->keyword);
- if ((number = strtod(val, NULL)) == 0.0 ||
+ if ((number = atof(val)) == 0.0 ||
(uval = cgiGetVariable(keyword)) == NULL ||
(strcmp(uval, "pt") && strcmp(uval, "in") && strcmp(uval, "ft") &&
strcmp(uval, "cm") && strcmp(uval, "mm") && strcmp(uval, "m")))
case PPD_CUSTOM_CURVE :
case PPD_CUSTOM_INVCURVE :
case PPD_CUSTOM_REAL :
- if ((number = strtod(val, NULL)) == 0.0 ||
+ if ((number = atof(val)) == 0.0 ||
number < cparam->minimum.custom_real ||
number > cparam->maximum.custom_real)
return (NULL);
case PPD_CUSTOM_POINTS :
snprintf(keyword, sizeof(keyword), "%s.Units", coption->keyword);
- if ((number = strtod(val, NULL)) == 0.0 ||
+ if ((number = atof(val)) == 0.0 ||
(uval = cgiGetVariable(keyword)) == NULL ||
(strcmp(uval, "pt") && strcmp(uval, "in") &&
strcmp(uval, "ft") && strcmp(uval, "cm") &&
* Indent...
*/
- float amount = 3.0; /* Indentation */
+ float amount = 3.0f; /* Indentation */
if (line[3])
amount = (float)atof(line + 4);
* .HP i
*/
- float amount = 3.0; /* Indentation */
+ float amount = 3.0f; /* Indentation */
if (line[3])
amount = (float)atof(line + 4);
* .TP i
*/
- float amount = 3.0; /* Indentation */
+ float amount = 3.0f; /* Indentation */
if (line[3])
- amount = (float)atof(line + 4);
+ amount = (float)atof(line + 4, NULL);
fputs(end_fonts[font], outfile);
font = 0;
* .IP x i
*/
- float amount = 3.0; /* Indentation */
+ float amount = 3.0f; /* Indentation */
const char *newlist = NULL; /* New list style */
const char *newtype = NULL; /* New list numbering type */