• 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: Looking for bytes in NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking for bytes in NSData


  • Subject: Re: Looking for bytes in NSData
  • From: Andy Lee <email@hidden>
  • Date: Sun, 27 Oct 2002 13:04:36 -0500

At 5:30 PM +0000 10/27/02, Chris Ridd wrote:
On 27/10/02 4:20 pm, Andy Lee <email@hidden> wrote:
> I've been using NSData's -bytes method combined with the C function
strstr(). Do a "man strstr" for details and variants on strstr().

You should avoid strstr() because it won't handle NUL bytes in either value
correctly from your point of view.

Whoops. I forgot there is such a thing as data that isn't C strings, and that people might actually write apps that use such data. ;)

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

References: 
 >Re: Looking for bytes in NSData (From: Chris Ridd <email@hidden>)

  • Prev by Date: Re: Looking for bytes in NSData
  • Next by Date: Max arguments for NSTask?
  • Previous by thread: Re: Looking for bytes in NSData
  • Next by thread: How to get a pointer to the current class handler callback?
  • Index(es):
    • Date
    • Thread