%
% o count: returns number of arguments in returned array
%
+% o exception: return any errors or warnings in this structure.
+%
*/
-MagickExport double *StringToArrayOfDoubles(const char *string,ssize_t *count)
+MagickExport double *StringToArrayOfDoubles(const char *string,ssize_t *count,
+ ExceptionInfo *exception)
{
char
*q;
*count=i;
array=(double *) AcquireQuantumMemory((size_t) i,sizeof(*array));
if (array == (double *) NULL)
- ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
+ (void) ThrowMagickException(exception,GetMagickModule(),ResourceLimitError,
+ "MemoryAllocationFailed","`%s'","");
/*
Fill in the floating point values.
*/
extern MagickExport double
InterpretSiPrefixValue(const char *restrict,char **restrict),
- *StringToArrayOfDoubles(const char *,ssize_t *);
+ *StringToArrayOfDoubles(const char *,ssize_t *,ExceptionInfo *);
extern MagickExport int
CompareStringInfo(const StringInfo *,const StringInfo *),