2017-11-24 15:14:10 +01:00
|
|
|
/*
|
|
|
|
* This software is licensed under the terms of the MIT-License
|
|
|
|
* See COPYING for further information.
|
|
|
|
* ---
|
2018-01-04 18:14:31 +01:00
|
|
|
* Copyright (c) 2011-2018, Lukas Weber <laochailan@web.de>.
|
|
|
|
* Copyright (c) 2012-2018, Andrei Alexeyev <akari@alienslab.net>.
|
2017-11-24 15:14:10 +01:00
|
|
|
*/
|
|
|
|
|
2018-05-25 08:01:07 +02:00
|
|
|
#include "taisei.h"
|
|
|
|
|
2018-05-15 02:27:25 +02:00
|
|
|
#include "crap.h"
|
2017-11-24 15:14:10 +01:00
|
|
|
|
2018-05-15 02:27:25 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2017-11-24 15:14:10 +01:00
|
|
|
|
2018-05-15 02:27:25 +02:00
|
|
|
void* memdup(const void *src, size_t size) {
|
|
|
|
void *data = malloc(size);
|
|
|
|
memcpy(data, src, size);
|
|
|
|
return data;
|
|
|
|
}
|