Re: const char* to char*
Re: const char* to char*
- Subject: Re: const char* to char*
- From: Jens Bauer <email@hidden>
- Date: Thu, 27 Nov 2003 23:12:24 +0100
Easy..
const char *cName = [theName cString];
:)
const means you shouldn't write into it.
You can't strcpy into it, but you can strcpy from it.
On Thursday, November 27, 2003, at 10:59 PM, David Cairns wrote:
i am getting this silly warning when compiling in Xcode. The warning
comes from the line
char *cName = [theName cString];
how can i work around this such that i avoid this error? would strcpy
work?
Love,
Jens
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.