Re: atoi( ) deprecation question...
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.