In Need For Function

Language: Visual C++

I do not know if it is possible, but this is what I need:

Relevant Code:
char *pBuff = NULL;
char *tmpBuff = NULL;
pBuff = (char*)calloc(dwSize+1, 1);
tmpBuff = (char*)calloc(dwSize+1, 1);
(tmpBuff is filled with some data, then)
memcpy(pBuff, tmpBuff, dwSize);

I need a function, that would display pBuff as text (and would show only ASCII characters). I tried puts(pBuff), puts(&pBuff) and other variations, but I cannot get it working.

Leave a Reply

Your email address will not be published. Required fields are marked *