/* * This software is licensed under the terms of the MIT-License * See COPYING for further information. * --- * Copyright (c) 2011-2018, Lukas Weber . * Copyright (c) 2012-2018, Andrei Alexeyev . */ #include "taisei.h" #include "crap.h" #include #include void* memdup(const void *src, size_t size) { void *data = malloc(size); memcpy(data, src, size); return data; }