mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-07-03 01:55:53 +00:00
26 lines
298 B
C++
26 lines
298 B
C++
#include "MWCPlusLib.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void* __copy(char* to, char* from, size_t size) {
|
|
char* p;
|
|
|
|
if (to && size) {
|
|
p = to;
|
|
do {
|
|
*p = *from;
|
|
++p;
|
|
++from;
|
|
--size;
|
|
} while (size > 0);
|
|
}
|
|
|
|
return to;
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|