Re: how to convert char to int?
Re: how to convert char to int?
- Subject: Re: how to convert char to int?
- From: Shawn Erickson <email@hidden>
- Date: Mon, 19 Nov 2007 03:06:14 -0800
On Nov 19, 2007, at 1:56 AM, amine ahmadi wrote:
Dear All,
I am looking for a source code that lets me convert
the type char to the int type.
I encourage you to find a book on the C programming language.
char foo;
int bar;
foo = 'A';
bar = (int) foo;
...or do you want to convert a character string into a number? If so
look at -[NSString stringWithFormat:], -[NSScanner scanInt:] or one of
the low level C lib functions.
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden