Re: What's the difference between a C++ and ObjC String?
Re: What's the difference between a C++ and ObjC String?
- Subject: Re: What's the difference between a C++ and ObjC String?
- From: Gen Kiyooka <email@hidden>
- Date: Fri, 1 Jul 2005 21:57:02 -0700
On Jul 1, 2005, at 4:12 PM, Frederick C. Lee wrote:
I read that C strings are null terminated whereas C++ strings are not.
??
try
std::string my_string("with_c_string_initializer");
const char* my_c_string = my_string.c_str();
Which leads me to ask, is there any difference between C++ and ObjC
strings?
Ric.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden