prime/src/Runtime/CPlusLibPPC.cpp
Phillip Stephens 6f4c7cdbad Match and link more of Runtime
Former-commit-id: 91943cb93ec399498536e82fb1761515d00e16b3
2022-10-10 01:49:11 -07:00

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