// convert from string to char*
char *str2chars(String ^s)
{
char *pHead, *pInd;
pHead = pInd = new char[s->Length+1];
for (int i=0;i<s->Length;++i)
*pInd++ = s[i];
*pInd = '\0';
return pHead;
}
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment