strcpyBuffer method

CString strcpyBuffer(
  1. CString dest,
  2. CString src
)

Copies the C-string pointed by src into the array pointed by dest, including the terminating null character.

Implementation

CString strcpyBuffer(CString dest, CString src) {
  int i = 0;
  while (true) {
    dest[i] = src[i];
    if (src[i] == 0) break;
    i++;
  }
  return dest;
}