Se ho capito bene potresti risolvere cosí:
codice:
static char ch[4096];
. . . 
(*pDest)++ = *pSrc;
. . . 
return ch;