summaryrefslogtreecommitdiff
path: root/src/MSL_C.PPCEABI.bare.H/CPlusLibPPC.cpp
blob: 4a0b5b9333c1177b669ef3f0847edce15b6c255a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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