• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dissappearing string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dissappearing string


  • Subject: Re: Dissappearing string
  • From: Charlie Dickman <email@hidden>
  • Date: Wed, 16 May 2012 14:00:39 -0400

An excellent observation! That was probably causing all kinds of problems yet to be seen!

Thanks so much!

On May 16, 2012, at 1:51 PM, Stephen J. Butler wrote:

> 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.

Charlie Dickman
email@hidden




_______________________________________________

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

References: 
 >Dissappearing string (From: Charlie Dickman <email@hidden>)
 >Re: Dissappearing string (From: Graham Cox <email@hidden>)
 >Re: Dissappearing string (From: Charlie Dickman <email@hidden>)
 >Re: Dissappearing string (From: Jens Alfke <email@hidden>)
 >Re: Dissappearing string (From: Charlie Dickman <email@hidden>)
 >Re: Dissappearing string (From: "Stephen J. Butler" <email@hidden>)

  • Prev by Date: Re: Dissappearing string
  • Next by Date: Re: Dissappearing string
  • Previous by thread: Re: Dissappearing string
  • Next by thread: Re: Dissappearing string
  • Index(es):
    • Date
    • Thread