Florian Levis
MAGICK_NATIVE_EXPORT PixelInfo *MagickColor_Clone(const PixelInfo *color) { PixelInfo *pixel_info; if (color == (PixelInfo *) NULL) return (PixelInfo *) NULL; pixel_info = (PixelInfo *) AcquireMagickMemory(sizeof(*pixel_info)); if (pixel_info == (PixelInfo *) NULL) return (PixelInfo *) NULL; *pixel_info = *color; return pixel_info; }
*pixel_info = *color;
pixel_info.pointer = color.pointer
memcpy
A modern programming language that makes developers happier.