• 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: atoi( ) deprecation question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: atoi( ) deprecation question...


  • Subject: Re: atoi( ) deprecation question...
  • From: "John C. Randolph" <email@hidden>
  • Date: Fri, 17 Jan 2003 00:16:25 -0800

On Thursday, January 16, 2003, at 11:44 PM, Philip George wrote:

I know that when the man page for atoi( ) says that it is "deprecated," it at least means that the api will be pulled at some point and code that uses it will therefore not compile anymore, but does it also mean that my currently compiled app (with atoi() call in it) won't run on some future build of OS X?

When something's deprecated, that means you shouldn't use it, because it *might* go away at some point in the future, or that there is a better way to do wha it does.

atoi() is part of the standard C library, so I wouldn't worry that it's going to go away. I would however, avoid using it since it takes an ASCII string as input, and we're moving away from ASCII in favor of unicode.

These days, when we want a floating-point value from a string, we just send a -floatValue message to an instance of NSString.

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.

  • Follow-Ups:
    • Re: atoi( ) deprecation question...
      • From: Philip George <email@hidden>
References: 
 >atoi( ) deprecation question... (From: Philip George <email@hidden>)

  • Prev by Date: brushed metal window dragging
  • Next by Date: Re: Saving as JPEG
  • Previous by thread: atoi( ) deprecation question...
  • Next by thread: Re: atoi( ) deprecation question...
  • Index(es):
    • Date
    • Thread