*/
XSetCursorState(display,windows,MagickTrue);
XCheckRefreshWindows(display,windows);
- (void) GammaImage(*image,atof(factor),exception);
+ (void) GammaImage(*image,strtod(factor,(char **) NULL),exception);
XSetCursorState(display,windows,MagickFalse);
if (IfMagickTrue(windows->image.orphan) )
break;
}
memcpy(tmp,tmpStart,tmpEnd-tmpStart);
tmp[tmpEnd-tmpStart] = '\0';
- maxComputeUnits = atoi(tmp);
+ maxComputeUnits = strtol(tmp,(char **) NULL,10);
tmpStart = findString(dataStart, contentEnd, DS_TAG_DEVICE_MAX_CLOCK_FREQ);
}
memcpy(tmp,tmpStart,tmpEnd-tmpStart);
tmp[tmpEnd-tmpStart] = '\0';
- maxClockFrequency = atoi(tmp);
+ maxClockFrequency = strtol(tmp,(char **) NULL,10);
/* check if this device is on the system */
memcpy(s, serializedScore, serializedScoreSize);
s[serializedScoreSize] = (char)'\0';
device->score = malloc(sizeof(AccelerateScoreType));
- *((AccelerateScoreType*)device->score) = (AccelerateScoreType)atof(s);
+ *((AccelerateScoreType*)device->score) = (AccelerateScoreType)
+ strtod(s,(char **) NULL));
free(s);
return DS_SUCCESS;
}
if (property != (const char *) NULL)
{
count=FormatLocaleString(header,MaxTextExtent,"EXPOSURE=%g\n",
- atof(property));
+ strtod(property,(char **) NULL));
(void) WriteBlob(image,(size_t) count,(unsigned char *) header);
}
if (image->gamma != 0.0)
if (*gamma == '\0')
(void) FormatLocaleString(gamma,MaxTextExtent,"%g,%g,%g",
(double) pixel.red,(double) pixel.green,(double) pixel.blue);
- (void) GammaImage(msl_info->image[n],atof(gamma),
+ (void) GammaImage(msl_info->image[n],strtod(gamma,(char **) NULL),
msl_info->exception);
break;
}