Re: Long to C-String
Re: Long to C-String
- Subject: Re: Long to C-String
- From: email@hidden (Simon Fraser)
- Date: Mon, 07 Apr 2003 16:28:22 -0700
David Blanton wrote:
On 4/7/03 4:18 PM, "email@hidden" <email@hidden> wrote:
you could use the ltoa() function in <stdlib.h> as follows:
ltoa( bytesPtr, buffer, 10 );
There is no man page for ltoa and ltoa is not defined in stdlib.h. Could it
be elsewhere?
Is there no Cocoa class for what seems to be a common need ... Convert a
long to a sting or am I misssing something here?
How about [NSString stringWithFormat:@"%d"]?
You can go the other way with [NSScanner scanInt:]
Simon
_______________________________________________
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.