- *destination=(char *) NULL;
Code: Select all
if (source == (const char *) NULL)
{
if (*destination != (char *) NULL)
*destination=DestroyString(*destination);
return(*destination);
}
if (*destination == (char *) NULL)
{
*destination=AcquireString(source);
return(*destination);
}
length=strlen(source);
if (~length < MaxTextExtent)
ThrowFatalException(ResourceLimitFatalError,"UnableToAcquireString");
*destination=(char *) ResizeQuantumMemory(*destination,length+MaxTextExtent,
sizeof(*destination));