• 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: MarketLogix Developer <email@hidden>
  • Date: Fri, 17 Jan 2003 07:54:01 -0800

Hi.

On Friday, January 17, 2003, at 02:52 AM, Chris Ridd wrote:

On 17/1/03 9:29 am, Philip George <email@hidden> wrote:
This snippet cannot use Obj-C api's. Strictly straight C. Also, the

Well you did email this question to the cocoa list so IMO you got an
entirely appropriate answer :-)

Appropriate perhaps, entirely appropriate - NO.

Cases can be made for using either alternative.
And yes, even on the mighty Cocoa list.

The strtol() function is part of the standard original ANSI C library, like
atoi().

Yep, you could have stopped right there.

From the man page:

STANDARDS
The atoi() function conforms to ISO/IEC 9945-1:1990 (``POSIX.1''),
ISO/IEC 9899:1990 (``ISO C89''), and ISO/IEC 9899:1999 (``ISO C99'').

Thus, removing it from a C runtime would make that runtime POSIX NON-COMPLIANT.

bisk
_______________________________________________
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: atoi( ) deprecation question... (From: Chris Ridd <email@hidden>)

  • Prev by Date: null values in NSArray ???
  • Next by Date: Re: null values in NSArray ???
  • Previous by thread: Re: atoi( ) deprecation question...
  • Next by thread: brushed metal window dragging
  • Index(es):
    • Date
    • Thread