티스토리 뷰

Languages/C, C++

How to use _tcscpy_s()

OGOONS 2013.07.09 18:46

TCHAR szSrc[128] = _T("bear");

 

const int nArrayCnt = _countof(szSrc);

 

TCHAR *pszDest = new TCHAR[nArrayCnt];

 

_tcscpy_s(pszDest, nArrayCnt, &szSrc[0]);

 

delete [] pszDest;


댓글
댓글쓰기 폼