|
-
October 10th, 2005, 05:17 AM
#5
Re: substr
You can make your own function, 'cause I don't think there's a good function...
Something like this I guess?
Code:
char* subStrng(char* const chrOrig, int begin, int size)
{
char *chrNew = new char[size];
for (int i=0; i<size; i++) {
chrNew[i] = chrOrig[i+begin];
}
return chrNew;
}
Edit;
I think CString has a mid-function... maybe you can use that;
http://msdn.microsoft.com/library/de...g.3a3a.mid.asp
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|