Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Converting char...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 45277 of 47977
Post > Topic >>

Converting char* to string

by Hans Mull <hans72mull@[EMAIL PROTECTED] > Apr 21, 2008 at 04:12 PM

Hi!
I have a char* which is not null-terminated and its length. How can I
convert it into a string like that:
char* c;
long len
string s = aFunction(c, len);

Thanks in advance, Hans
 




 2 Posts in Topic:
Converting char* to string
Hans Mull <hans72mull@  2008-04-21 16:12:12 
Re: Converting char* to string
Hans Mull <hans72mull@  2008-04-21 16:16:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 8:44:51 CDT 2008.