On 09/11/2009, at 9:49 PM, Andy Lee wrote:

Won't this output the digits in reverse order?


Yes it will, but as I mentioned in an off-list message, the use of putchar is probably not very useful for a real-world implementation either, so you can compensate for the order when accumulating the result into a string (or whatever).

I guess as a former hardware guy the heavy stack use for such a trivial purpose just red-flagged me. Old habits die hard ;-)

--Graham


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to