Re: Dissappearing string
Re: Dissappearing string
- Subject: Re: Dissappearing string
- From: "Stephen J. Butler" <email@hidden>
- Date: Wed, 16 May 2012 12:51:16 -0500
On Wed, May 16, 2012 at 12:39 PM, Charlie Dickman <email@hidden> wrote:
> possible[strlen(possible)] = '\0';
This can't possibly work. strlen() depends on the string already being
\0 terminated. You can't use strlen() to find the position to add a
\0.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden