Community
int schdim(resbuf *rb)
{
TCHAR dimn[5], bname[30],chang[30];
wcscpy(bname, _T("dimn50"));
ads_printf(_T("\nbname=%s\n"), bname);
wcscpy(dimn, _T("abcd"));
ads_printf(_T("\ndimn=%s\n"), dimn);
wcsncpy(bname, dimn, 4);
ads_printf(_T("\nbname=%s\n"), bname);
}
the sample code above , but the result of "bname" is error!!
result list:
bname=dimn50
dimn=abcd
bname=abcd
I'm waiting for any suggestion, thank you.
Hi,
Your query is still not clear.
I have attached the output of the code snippet when I tried it with AutoCAD 2013.
It is the same as what you are expecting.